Redirect 302 redirect from GET @entry_comment_create (f3d052)

GET https://kbin.spritesserver.nl/index.php/m/linux@lemmy.ml/t/11536/Custom-shell-prompt-tips-and-tricks

Security

Token

There is no security token.

Firewall

main Name
Security enabled
Stateless

Configuration

Key Value
provider security.user.provider.concrete.app_user_provider
context main
entry_point App\Security\KbinAuthenticator
user_checker App\Security\UserChecker
access_denied_handler (none)
access_denied_url (none)
authenticators
[
  "two_factor"
  "remember_me"
  "App\Security\KbinAuthenticator"
  "App\Security\FacebookAuthenticator"
  "App\Security\GoogleAuthenticator"
  "App\Security\GithubAuthenticator"
  "App\Security\KeycloakAuthenticator"
]

Listeners

Listener Duration Response
Symfony\Component\Security\Http\Firewall\ChannelListener {#723
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
  -logger: Monolog\Logger {#783 …}
  -httpPort: 80
  -httpsPort: 443
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\ContextListener {#706
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorage {#1017 …}
  -sessionKey: "_security_main"
  -logger: Monolog\Logger {#783 …}
  -userProviders: Symfony\Component\DependencyInjection\Argument\RewindableGenerator {#705 …}
  -dispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
  -registered: false
  -trustResolver: Scheb\TwoFactorBundle\Security\Authentication\AuthenticationTrustResolver {#780 …}
  -sessionTrackerEnabler: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage::enableUsageTracking(): void {#703 …}
}
14.66 ms (none)
Symfony\Component\Security\Http\Firewall\AuthenticatorManagerListener {#584
  -authenticatorManager: Symfony\Component\Security\Http\Authentication\AuthenticatorManager {#595 …}
}
0.00 ms (none)
Scheb\TwoFactorBundle\Security\Http\Firewall\TwoFactorAccessListener {#582
  -twoFactorFirewallConfig: Scheb\TwoFactorBundle\Security\TwoFactor\TwoFactorFirewallConfig {#842 …}
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -twoFactorAccessDecider: Scheb\TwoFactorBundle\Security\Authorization\TwoFactorAccessDecider {#581 …}
}
0.07 ms (none)
Symfony\Component\Security\Http\Firewall\AccessListener {#579
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -accessDecisionManager: Symfony\Component\Security\Core\Authorization\TraceableAccessDecisionManager {#937 …}
  -map: Symfony\Component\Security\Http\AccessMap {#722 …}
}
0.00 ms (none)
Symfony\Component\Security\Http\Firewall\LogoutListener {#786
  -tokenStorage: Symfony\Component\Security\Core\Authentication\Token\Storage\UsageTrackingTokenStorage {#1018 …}
  -options: [
    "csrf_parameter" => "_csrf_token"
    "csrf_token_id" => "logout"
    "logout_path" => "app_logout"
  ]
  -httpUtils: Symfony\Component\Security\Http\HttpUtils {#841 …}
  -csrfTokenManager: Symfony\Component\Security\Csrf\CsrfTokenManager {#1015 …}
  -eventDispatcher: Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher {#747 …}
}
0.00 ms (none)

Authenticators

No authenticators have been recorded. Check previous profiles on your authentication endpoint.

Access Decision

affirmative Strategy
# Voter class
1
"Symfony\Component\Security\Core\Authorization\Voter\AuthenticatedVoter"
2
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
3
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
4
"Symfony\Component\Security\Core\Authorization\Voter\ExpressionVoter"
5
"App\Security\Voter\EntryCommentVoter"
6
"App\Security\Voter\EntryVoter"
7
"App\Security\Voter\MagazineVoter"
8
"App\Security\Voter\MessageThreadVoter"
9
"App\Security\Voter\MessageVoter"
10
"App\Security\Voter\NotificationVoter"
11
"App\Security\Voter\OAuth2UserConsentVoter"
12
"App\Security\Voter\PostCommentVoter"
13
"App\Security\Voter\PostVoter"
14
"App\Security\Voter\UserVoter"

Access decision log

# Result Attributes Object
1 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
2 DENIED moderate
App\Entity\Entry {#2419
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#265
    +icon: Proxies\__CG__\App\Entity\Image {#246 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#275
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#237 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
    +entries: Doctrine\ORM\PersistentCollection {#180 …}
    +posts: Doctrine\ORM\PersistentCollection {#138 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
    +bans: Doctrine\ORM\PersistentCollection {#117 …}
    +reports: Doctrine\ORM\PersistentCollection {#103 …}
    +badges: Doctrine\ORM\PersistentCollection {#81 …}
    +logs: Doctrine\ORM\PersistentCollection {#71 …}
    +awards: Doctrine\ORM\PersistentCollection {#1346 …}
    +categories: Doctrine\ORM\PersistentCollection {#1823 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#269
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#271
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Custom-shell-prompt-tips-and-tricks"
  +title: "Custom shell prompt tips and tricks?"
  +url: null
  +body: """
    Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
    \n
    My question is, what customization, tips and tricks do you have for the shell prompt?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 27
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700431405 {#2414
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 11536
  -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
  -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1699644087
  +visibility: "visible             "
  +apId: "https://lemmy.zip/post/5328558"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699557687 {#1793
    date: 2023-11-09 20:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
3 DENIED edit
App\Entity\Entry {#2419
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#265
    +icon: Proxies\__CG__\App\Entity\Image {#246 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#275
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#237 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
    +entries: Doctrine\ORM\PersistentCollection {#180 …}
    +posts: Doctrine\ORM\PersistentCollection {#138 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
    +bans: Doctrine\ORM\PersistentCollection {#117 …}
    +reports: Doctrine\ORM\PersistentCollection {#103 …}
    +badges: Doctrine\ORM\PersistentCollection {#81 …}
    +logs: Doctrine\ORM\PersistentCollection {#71 …}
    +awards: Doctrine\ORM\PersistentCollection {#1346 …}
    +categories: Doctrine\ORM\PersistentCollection {#1823 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#269
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#271
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Custom-shell-prompt-tips-and-tricks"
  +title: "Custom shell prompt tips and tricks?"
  +url: null
  +body: """
    Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
    \n
    My question is, what customization, tips and tricks do you have for the shell prompt?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 27
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700431405 {#2414
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 11536
  -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
  -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1699644087
  +visibility: "visible             "
  +apId: "https://lemmy.zip/post/5328558"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699557687 {#1793
    date: 2023-11-09 20:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
4 DENIED moderate
App\Entity\Entry {#2419
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +magazine: App\Entity\Magazine {#265
    +icon: Proxies\__CG__\App\Entity\Image {#246 …}
    +name: "linux@lemmy.ml"
    +title: "linux"
    +description: """
      From Wikipedia, the free encyclopedia\n
      \n
      Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
      \n
      Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
      \n
      ### Rules\n
      \n
      - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
      - No misinformation\n
      - No NSFW content\n
      - No hate speech, bigotry, etc\n
      \n
      ### Related Communities\n
      \n
      - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
      - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
      - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
      - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
      \n
      Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
      """
    +rules: null
    +subscriptionsCount: 1
    +entryCount: 1406
    +entryCommentCount: 28632
    +postCount: 6
    +postCommentCount: 214
    +isAdult: false
    +customCss: null
    +lastActive: DateTime @1729583542 {#275
      date: 2024-10-22 09:52:22.0 +02:00
    }
    +markedForDeletionAt: null
    +tags: null
    +moderators: Doctrine\ORM\PersistentCollection {#237 …}
    +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
    +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
    +entries: Doctrine\ORM\PersistentCollection {#180 …}
    +posts: Doctrine\ORM\PersistentCollection {#138 …}
    +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
    +bans: Doctrine\ORM\PersistentCollection {#117 …}
    +reports: Doctrine\ORM\PersistentCollection {#103 …}
    +badges: Doctrine\ORM\PersistentCollection {#81 …}
    +logs: Doctrine\ORM\PersistentCollection {#71 …}
    +awards: Doctrine\ORM\PersistentCollection {#1346 …}
    +categories: Doctrine\ORM\PersistentCollection {#1823 …}
    -id: 73
    +apId: "linux@lemmy.ml"
    +apProfileId: "https://lemmy.ml/c/linux"
    +apPublicUrl: "https://lemmy.ml/c/linux"
    +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
    +apInboxUrl: "https://lemmy.ml/inbox"
    +apDomain: "lemmy.ml"
    +apPreferredUsername: "linux"
    +apDiscoverable: true
    +apManuallyApprovesFollowers: null
    +privateKey: null
    +publicKey: null
    +apFetchedAt: DateTime @1729583596 {#269
      date: 2024-10-22 09:53:16.0 +02:00
    }
    +apDeletedAt: null
    +apTimeoutAt: null
    +visibility: "visible             "
    +createdAt: DateTimeImmutable @1698929468 {#271
      date: 2023-11-02 13:51:08.0 +01:00
    }
  }
  +image: null
  +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
  +slug: "Custom-shell-prompt-tips-and-tricks"
  +title: "Custom shell prompt tips and tricks?"
  +url: null
  +body: """
    Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
    \n
    My question is, what customization, tips and tricks do you have for the shell prompt?
    """
  +type: "article"
  +lang: "en"
  +isOc: false
  +hasEmbed: false
  +commentCount: 19
  +favouriteCount: 27
  +score: 0
  +isAdult: false
  +sticky: false
  +lastActive: DateTime @1700431405 {#2414
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +adaAmount: 0
  +tags: null
  +mentions: null
  +comments: Doctrine\ORM\PersistentCollection {#1884 …}
  +votes: Doctrine\ORM\PersistentCollection {#1973 …}
  +reports: Doctrine\ORM\PersistentCollection {#1959 …}
  +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
  +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
  +badges: Doctrine\ORM\PersistentCollection {#2440 …}
  +children: []
  -id: 11536
  -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
  -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
  +cross: false
  +upVotes: 0
  +downVotes: 0
  +ranking: 1699644087
  +visibility: "visible             "
  +apId: "https://lemmy.zip/post/5328558"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699557687 {#1793
    date: 2023-11-09 20:21:27.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS DENIED
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
5 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
6 DENIED moderate
App\Entity\EntryComment {#4014
  +user: App\Entity\User {#3962 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    Step 1. Install fish shell\n
    \n
    Step 2. Type fish_config\n
    \n
    Step 3. Profit
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700033617 {#4024
    date: 2023-11-15 08:33:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4012 …}
  +nested: Doctrine\ORM\PersistentCollection {#4010 …}
  +votes: Doctrine\ORM\PersistentCollection {#4008 …}
  +reports: Doctrine\ORM\PersistentCollection {#4006 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3974 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3978 …}
  -id: 126344
  -bodyTs: "'1':2 '2':7 '3':12 'config':10 'fish':4,9 'instal':3 'profit':13 'shell':5 'step':1,6,11 'type':8"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327298"
  +editedAt: DateTimeImmutable @1700284392 {#3960
    date: 2023-11-18 06:13:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700033617 {#4023
    date: 2023-11-15 08:33:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
7 DENIED edit
App\Entity\EntryComment {#4014
  +user: App\Entity\User {#3962 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    Step 1. Install fish shell\n
    \n
    Step 2. Type fish_config\n
    \n
    Step 3. Profit
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700033617 {#4024
    date: 2023-11-15 08:33:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4012 …}
  +nested: Doctrine\ORM\PersistentCollection {#4010 …}
  +votes: Doctrine\ORM\PersistentCollection {#4008 …}
  +reports: Doctrine\ORM\PersistentCollection {#4006 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3974 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3978 …}
  -id: 126344
  -bodyTs: "'1':2 '2':7 '3':12 'config':10 'fish':4,9 'instal':3 'profit':13 'shell':5 'step':1,6,11 'type':8"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327298"
  +editedAt: DateTimeImmutable @1700284392 {#3960
    date: 2023-11-18 06:13:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700033617 {#4023
    date: 2023-11-15 08:33:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
8 DENIED moderate
App\Entity\EntryComment {#4014
  +user: App\Entity\User {#3962 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    Step 1. Install fish shell\n
    \n
    Step 2. Type fish_config\n
    \n
    Step 3. Profit
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700033617 {#4024
    date: 2023-11-15 08:33:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4012 …}
  +nested: Doctrine\ORM\PersistentCollection {#4010 …}
  +votes: Doctrine\ORM\PersistentCollection {#4008 …}
  +reports: Doctrine\ORM\PersistentCollection {#4006 …}
  +favourites: Doctrine\ORM\PersistentCollection {#3974 …}
  +notifications: Doctrine\ORM\PersistentCollection {#3978 …}
  -id: 126344
  -bodyTs: "'1':2 '2':7 '3':12 'config':10 'fish':4,9 'instal':3 'profit':13 'shell':5 'step':1,6,11 'type':8"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5327298"
  +editedAt: DateTimeImmutable @1700284392 {#3960
    date: 2023-11-18 06:13:12.0 +01:00
  }
  +createdAt: DateTimeImmutable @1700033617 {#4023
    date: 2023-11-15 08:33:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
9 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
10 DENIED moderate
App\Entity\EntryComment {#4050
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
    \n
    Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">__shellprompt ()\n
    </span><span style="color:#323232;">{\n
    </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
    </span><span style="color:#323232;">\telse\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
    </span><span style="color:#323232;">\tfi\n
    </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
    </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
    </span><span style="color:#323232;">}\n
    </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
    </span>\n
    ```\n
    \n
    Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
    \n
    In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699929949 {#4056
    date: 2023-11-14 03:45:49.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4051 …}
  +nested: Doctrine\ORM\PersistentCollection {#4042 …}
  +votes: Doctrine\ORM\PersistentCollection {#4045 …}
  +reports: Doctrine\ORM\PersistentCollection {#4040 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
  -id: 107768
  -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4253531"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699627856 {#4057
    date: 2023-11-10 15:50:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
11 DENIED edit
App\Entity\EntryComment {#4050
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
    \n
    Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">__shellprompt ()\n
    </span><span style="color:#323232;">{\n
    </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
    </span><span style="color:#323232;">\telse\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
    </span><span style="color:#323232;">\tfi\n
    </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
    </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
    </span><span style="color:#323232;">}\n
    </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
    </span>\n
    ```\n
    \n
    Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
    \n
    In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699929949 {#4056
    date: 2023-11-14 03:45:49.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4051 …}
  +nested: Doctrine\ORM\PersistentCollection {#4042 …}
  +votes: Doctrine\ORM\PersistentCollection {#4045 …}
  +reports: Doctrine\ORM\PersistentCollection {#4040 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
  -id: 107768
  -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4253531"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699627856 {#4057
    date: 2023-11-10 15:50:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
12 DENIED moderate
App\Entity\EntryComment {#4050
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
    \n
    Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
    \n
    ```\n
    \n
    <span style="color:#323232;">__shellprompt ()\n
    </span><span style="color:#323232;">{\n
    </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
    </span><span style="color:#323232;">\telse\n
    </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
    </span><span style="color:#323232;">\tfi\n
    </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
    </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
    </span><span style="color:#323232;">}\n
    </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
    </span>\n
    ```\n
    \n
    Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
    \n
    In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699929949 {#4056
    date: 2023-11-14 03:45:49.0 +01:00
  }
  +ip: null
  +tags: [
    "323232"
  ]
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4051 …}
  +nested: Doctrine\ORM\PersistentCollection {#4042 …}
  +votes: Doctrine\ORM\PersistentCollection {#4045 …}
  +reports: Doctrine\ORM\PersistentCollection {#4040 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
  -id: 107768
  -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4253531"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699627856 {#4057
    date: 2023-11-10 15:50:56.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
13 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
14 DENIED moderate
App\Entity\EntryComment {#4800
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4050
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
      \n
      Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">__shellprompt ()\n
      </span><span style="color:#323232;">{\n
      </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
      </span><span style="color:#323232;">\telse\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
      </span><span style="color:#323232;">\tfi\n
      </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
      </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
      </span><span style="color:#323232;">}\n
      </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
      </span>\n
      ```\n
      \n
      Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
      \n
      In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699929949 {#4056
      date: 2023-11-14 03:45:49.0 +01:00
    }
    +ip: null
    +tags: [
      "323232"
    ]
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4051 …}
    +nested: Doctrine\ORM\PersistentCollection {#4042 …}
    +votes: Doctrine\ORM\PersistentCollection {#4045 …}
    +reports: Doctrine\ORM\PersistentCollection {#4040 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
    -id: 107768
    -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4253531"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699627856 {#4057
      date: 2023-11-10 15:50:56.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Wow, thank you very much! :-)\n
    \n
    This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
    \n
    I’ll waste most probably a few hours to find my perfect prompt function!\n
    \n
    (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699745737 {#4798
    date: 2023-11-12 00:35:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4801 …}
  +nested: Doctrine\ORM\PersistentCollection {#4803 …}
  +votes: Doctrine\ORM\PersistentCollection {#4805 …}
  +reports: Doctrine\ORM\PersistentCollection {#4807 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
  -id: 113488
  -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4574993"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699745737 {#4799
    date: 2023-11-12 00:35:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
15 DENIED edit
App\Entity\EntryComment {#4800
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4050
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
      \n
      Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">__shellprompt ()\n
      </span><span style="color:#323232;">{\n
      </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
      </span><span style="color:#323232;">\telse\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
      </span><span style="color:#323232;">\tfi\n
      </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
      </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
      </span><span style="color:#323232;">}\n
      </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
      </span>\n
      ```\n
      \n
      Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
      \n
      In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699929949 {#4056
      date: 2023-11-14 03:45:49.0 +01:00
    }
    +ip: null
    +tags: [
      "323232"
    ]
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4051 …}
    +nested: Doctrine\ORM\PersistentCollection {#4042 …}
    +votes: Doctrine\ORM\PersistentCollection {#4045 …}
    +reports: Doctrine\ORM\PersistentCollection {#4040 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
    -id: 107768
    -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4253531"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699627856 {#4057
      date: 2023-11-10 15:50:56.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Wow, thank you very much! :-)\n
    \n
    This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
    \n
    I’ll waste most probably a few hours to find my perfect prompt function!\n
    \n
    (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699745737 {#4798
    date: 2023-11-12 00:35:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4801 …}
  +nested: Doctrine\ORM\PersistentCollection {#4803 …}
  +votes: Doctrine\ORM\PersistentCollection {#4805 …}
  +reports: Doctrine\ORM\PersistentCollection {#4807 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
  -id: 113488
  -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4574993"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699745737 {#4799
    date: 2023-11-12 00:35:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
16 DENIED moderate
App\Entity\EntryComment {#4800
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4050
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
      \n
      Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
      \n
      ```\n
      \n
      <span style="color:#323232;">__shellprompt ()\n
      </span><span style="color:#323232;">{\n
      </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
      </span><span style="color:#323232;">\telse\n
      </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
      </span><span style="color:#323232;">\tfi\n
      </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
      </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
      </span><span style="color:#323232;">}\n
      </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
      </span>\n
      ```\n
      \n
      Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
      \n
      In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699929949 {#4056
      date: 2023-11-14 03:45:49.0 +01:00
    }
    +ip: null
    +tags: [
      "323232"
    ]
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4051 …}
    +nested: Doctrine\ORM\PersistentCollection {#4042 …}
    +votes: Doctrine\ORM\PersistentCollection {#4045 …}
    +reports: Doctrine\ORM\PersistentCollection {#4040 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
    -id: 107768
    -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4253531"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699627856 {#4057
      date: 2023-11-10 15:50:56.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Wow, thank you very much! :-)\n
    \n
    This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
    \n
    I’ll waste most probably a few hours to find my perfect prompt function!\n
    \n
    (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699745737 {#4798
    date: 2023-11-12 00:35:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4801 …}
  +nested: Doctrine\ORM\PersistentCollection {#4803 …}
  +votes: Doctrine\ORM\PersistentCollection {#4805 …}
  +reports: Doctrine\ORM\PersistentCollection {#4807 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
  -id: 113488
  -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4574993"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699745737 {#4799
    date: 2023-11-12 00:35:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
17 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
18 DENIED moderate
App\Entity\EntryComment {#4838
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4800
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4050
      +user: App\Entity\User {#4034 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: """
        A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
        \n
        Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">__shellprompt ()\n
        </span><span style="color:#323232;">{\n
        </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
        </span><span style="color:#323232;">\telse\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
        </span><span style="color:#323232;">\tfi\n
        </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
        </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
        </span><span style="color:#323232;">}\n
        </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
        </span>\n
        ```\n
        \n
        Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
        \n
        In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699929949 {#4056
        date: 2023-11-14 03:45:49.0 +01:00
      }
      +ip: null
      +tags: [
        "323232"
      ]
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4051 …}
      +nested: Doctrine\ORM\PersistentCollection {#4042 …}
      +votes: Doctrine\ORM\PersistentCollection {#4045 …}
      +reports: Doctrine\ORM\PersistentCollection {#4040 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
      -id: 107768
      -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.blahaj.zone/comment/4253531"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699627856 {#4057
        date: 2023-11-10 15:50:56.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Wow, thank you very much! :-)\n
      \n
      This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
      \n
      I’ll waste most probably a few hours to find my perfect prompt function!\n
      \n
      (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699745737 {#4798
      date: 2023-11-12 00:35:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4801 …}
    +nested: Doctrine\ORM\PersistentCollection {#4803 …}
    +votes: Doctrine\ORM\PersistentCollection {#4805 …}
    +reports: Doctrine\ORM\PersistentCollection {#4807 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
    -id: 113488
    -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4574993"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699745737 {#4799
      date: 2023-11-12 00:35:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Im glad I was able to help!\n
    \n
    Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699766191 {#4836
    date: 2023-11-12 06:16:31.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4839 …}
  +nested: Doctrine\ORM\PersistentCollection {#4841 …}
  +votes: Doctrine\ORM\PersistentCollection {#4843 …}
  +reports: Doctrine\ORM\PersistentCollection {#4845 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
  -id: 114396
  -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4295802"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699766191 {#4837
    date: 2023-11-12 06:16:31.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
19 DENIED edit
App\Entity\EntryComment {#4838
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4800
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4050
      +user: App\Entity\User {#4034 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: """
        A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
        \n
        Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">__shellprompt ()\n
        </span><span style="color:#323232;">{\n
        </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
        </span><span style="color:#323232;">\telse\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
        </span><span style="color:#323232;">\tfi\n
        </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
        </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
        </span><span style="color:#323232;">}\n
        </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
        </span>\n
        ```\n
        \n
        Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
        \n
        In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699929949 {#4056
        date: 2023-11-14 03:45:49.0 +01:00
      }
      +ip: null
      +tags: [
        "323232"
      ]
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4051 …}
      +nested: Doctrine\ORM\PersistentCollection {#4042 …}
      +votes: Doctrine\ORM\PersistentCollection {#4045 …}
      +reports: Doctrine\ORM\PersistentCollection {#4040 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
      -id: 107768
      -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.blahaj.zone/comment/4253531"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699627856 {#4057
        date: 2023-11-10 15:50:56.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Wow, thank you very much! :-)\n
      \n
      This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
      \n
      I’ll waste most probably a few hours to find my perfect prompt function!\n
      \n
      (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699745737 {#4798
      date: 2023-11-12 00:35:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4801 …}
    +nested: Doctrine\ORM\PersistentCollection {#4803 …}
    +votes: Doctrine\ORM\PersistentCollection {#4805 …}
    +reports: Doctrine\ORM\PersistentCollection {#4807 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
    -id: 113488
    -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4574993"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699745737 {#4799
      date: 2023-11-12 00:35:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Im glad I was able to help!\n
    \n
    Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699766191 {#4836
    date: 2023-11-12 06:16:31.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4839 …}
  +nested: Doctrine\ORM\PersistentCollection {#4841 …}
  +votes: Doctrine\ORM\PersistentCollection {#4843 …}
  +reports: Doctrine\ORM\PersistentCollection {#4845 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
  -id: 114396
  -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4295802"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699766191 {#4837
    date: 2023-11-12 06:16:31.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
20 DENIED moderate
App\Entity\EntryComment {#4838
  +user: App\Entity\User {#4034 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4800
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4050
      +user: App\Entity\User {#4034 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: """
        A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
        \n
        Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
        \n
        ```\n
        \n
        <span style="color:#323232;">__shellprompt ()\n
        </span><span style="color:#323232;">{\n
        </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
        </span><span style="color:#323232;">\telse\n
        </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
        </span><span style="color:#323232;">\tfi\n
        </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
        </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
        </span><span style="color:#323232;">}\n
        </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
        </span>\n
        ```\n
        \n
        Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
        \n
        In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699929949 {#4056
        date: 2023-11-14 03:45:49.0 +01:00
      }
      +ip: null
      +tags: [
        "323232"
      ]
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4051 …}
      +nested: Doctrine\ORM\PersistentCollection {#4042 …}
      +votes: Doctrine\ORM\PersistentCollection {#4045 …}
      +reports: Doctrine\ORM\PersistentCollection {#4040 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
      -id: 107768
      -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.blahaj.zone/comment/4253531"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699627856 {#4057
        date: 2023-11-10 15:50:56.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Wow, thank you very much! :-)\n
      \n
      This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
      \n
      I’ll waste most probably a few hours to find my perfect prompt function!\n
      \n
      (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699745737 {#4798
      date: 2023-11-12 00:35:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4801 …}
    +nested: Doctrine\ORM\PersistentCollection {#4803 …}
    +votes: Doctrine\ORM\PersistentCollection {#4805 …}
    +reports: Doctrine\ORM\PersistentCollection {#4807 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
    -id: 113488
    -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4574993"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699745737 {#4799
      date: 2023-11-12 00:35:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Im glad I was able to help!\n
    \n
    Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699766191 {#4836
    date: 2023-11-12 06:16:31.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4839 …}
  +nested: Doctrine\ORM\PersistentCollection {#4841 …}
  +votes: Doctrine\ORM\PersistentCollection {#4843 …}
  +reports: Doctrine\ORM\PersistentCollection {#4845 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
  -id: 114396
  -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.blahaj.zone/comment/4295802"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699766191 {#4837
    date: 2023-11-12 06:16:31.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
21 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
22 DENIED moderate
App\Entity\EntryComment {#4876
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4838
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4800
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: App\Entity\EntryComment {#4050
        +user: App\Entity\User {#4034 …}
        +entry: App\Entity\Entry {#2419}
        +magazine: App\Entity\Magazine {#265}
        +image: null
        +parent: null
        +root: null
        +body: """
          A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
          \n
          Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
          \n
          ```\n
          \n
          <span style="color:#323232;">__shellprompt ()\n
          </span><span style="color:#323232;">{\n
          </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
          </span><span style="color:#323232;">\telse\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
          </span><span style="color:#323232;">\tfi\n
          </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
          </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
          </span><span style="color:#323232;">}\n
          </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
          </span>\n
          ```\n
          \n
          Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
          \n
          In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699929949 {#4056
          date: 2023-11-14 03:45:49.0 +01:00
        }
        +ip: null
        +tags: [
          "323232"
        ]
        +mentions: [
          "@wolf@lemmy.zip"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4051 …}
        +nested: Doctrine\ORM\PersistentCollection {#4042 …}
        +votes: Doctrine\ORM\PersistentCollection {#4045 …}
        +reports: Doctrine\ORM\PersistentCollection {#4040 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
        -id: 107768
        -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.blahaj.zone/comment/4253531"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699627856 {#4057
          date: 2023-11-10 15:50:56.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4050}
      +body: """
        Wow, thank you very much! :-)\n
        \n
        This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
        \n
        I’ll waste most probably a few hours to find my perfect prompt function!\n
        \n
        (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699745737 {#4798
        date: 2023-11-12 00:35:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
        "@12510198@lemmy.blahaj.zone"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4801 …}
      +nested: Doctrine\ORM\PersistentCollection {#4803 …}
      +votes: Doctrine\ORM\PersistentCollection {#4805 …}
      +reports: Doctrine\ORM\PersistentCollection {#4807 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
      -id: 113488
      -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.zip/comment/4574993"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699745737 {#4799
        date: 2023-11-12 00:35:37.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Im glad I was able to help!\n
      \n
      Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699766191 {#4836
      date: 2023-11-12 06:16:31.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4839 …}
    +nested: Doctrine\ORM\PersistentCollection {#4841 …}
    +votes: Doctrine\ORM\PersistentCollection {#4843 …}
    +reports: Doctrine\ORM\PersistentCollection {#4845 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
    -id: 114396
    -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4295802"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699766191 {#4837
      date: 2023-11-12 06:16:31.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Thanks, of course the color escapes are the first thing I ran into yesterday, when I played around with prompt functions. ;-)\n
    \n
    Porting your prompt command to another language is a very nice and practical little project, perhaps I will give it a go with Go. (Pun intended ;-))\n
    \n
    Have a great week!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699798872 {#4877
    date: 2023-11-12 15:21:12.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4873 …}
  +nested: Doctrine\ORM\PersistentCollection {#4869 …}
  +votes: Doctrine\ORM\PersistentCollection {#4867 …}
  +reports: Doctrine\ORM\PersistentCollection {#4882 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4884 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4886 …}
  -id: 115603
  -bodyTs: "'anoth':27 'around':18 'color':5 'command':25 'cours':3 'escap':6 'first':9 'function':21 'give':40 'go':43,45 'great':50 'intend':47 'languag':28 'littl':35 'nice':32 'perhap':37 'play':17 'port':22 'practic':34 'project':36 'prompt':20,24 'pun':46 'ran':12 'thank':1 'thing':10 'week':51 'yesterday':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4591944"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699798872 {#4880
    date: 2023-11-12 15:21:12.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
23 DENIED edit
App\Entity\EntryComment {#4876
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4838
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4800
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: App\Entity\EntryComment {#4050
        +user: App\Entity\User {#4034 …}
        +entry: App\Entity\Entry {#2419}
        +magazine: App\Entity\Magazine {#265}
        +image: null
        +parent: null
        +root: null
        +body: """
          A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
          \n
          Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
          \n
          ```\n
          \n
          <span style="color:#323232;">__shellprompt ()\n
          </span><span style="color:#323232;">{\n
          </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
          </span><span style="color:#323232;">\telse\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
          </span><span style="color:#323232;">\tfi\n
          </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
          </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
          </span><span style="color:#323232;">}\n
          </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
          </span>\n
          ```\n
          \n
          Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
          \n
          In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699929949 {#4056
          date: 2023-11-14 03:45:49.0 +01:00
        }
        +ip: null
        +tags: [
          "323232"
        ]
        +mentions: [
          "@wolf@lemmy.zip"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4051 …}
        +nested: Doctrine\ORM\PersistentCollection {#4042 …}
        +votes: Doctrine\ORM\PersistentCollection {#4045 …}
        +reports: Doctrine\ORM\PersistentCollection {#4040 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
        -id: 107768
        -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.blahaj.zone/comment/4253531"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699627856 {#4057
          date: 2023-11-10 15:50:56.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4050}
      +body: """
        Wow, thank you very much! :-)\n
        \n
        This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
        \n
        I’ll waste most probably a few hours to find my perfect prompt function!\n
        \n
        (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699745737 {#4798
        date: 2023-11-12 00:35:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
        "@12510198@lemmy.blahaj.zone"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4801 …}
      +nested: Doctrine\ORM\PersistentCollection {#4803 …}
      +votes: Doctrine\ORM\PersistentCollection {#4805 …}
      +reports: Doctrine\ORM\PersistentCollection {#4807 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
      -id: 113488
      -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.zip/comment/4574993"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699745737 {#4799
        date: 2023-11-12 00:35:37.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Im glad I was able to help!\n
      \n
      Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699766191 {#4836
      date: 2023-11-12 06:16:31.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4839 …}
    +nested: Doctrine\ORM\PersistentCollection {#4841 …}
    +votes: Doctrine\ORM\PersistentCollection {#4843 …}
    +reports: Doctrine\ORM\PersistentCollection {#4845 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
    -id: 114396
    -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4295802"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699766191 {#4837
      date: 2023-11-12 06:16:31.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Thanks, of course the color escapes are the first thing I ran into yesterday, when I played around with prompt functions. ;-)\n
    \n
    Porting your prompt command to another language is a very nice and practical little project, perhaps I will give it a go with Go. (Pun intended ;-))\n
    \n
    Have a great week!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699798872 {#4877
    date: 2023-11-12 15:21:12.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4873 …}
  +nested: Doctrine\ORM\PersistentCollection {#4869 …}
  +votes: Doctrine\ORM\PersistentCollection {#4867 …}
  +reports: Doctrine\ORM\PersistentCollection {#4882 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4884 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4886 …}
  -id: 115603
  -bodyTs: "'anoth':27 'around':18 'color':5 'command':25 'cours':3 'escap':6 'first':9 'function':21 'give':40 'go':43,45 'great':50 'intend':47 'languag':28 'littl':35 'nice':32 'perhap':37 'play':17 'port':22 'practic':34 'project':36 'prompt':20,24 'pun':46 'ran':12 'thank':1 'thing':10 'week':51 'yesterday':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4591944"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699798872 {#4880
    date: 2023-11-12 15:21:12.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
24 DENIED moderate
App\Entity\EntryComment {#4876
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4838
    +user: App\Entity\User {#4034 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4800
      +user: Proxies\__CG__\App\Entity\User {#1970 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: App\Entity\EntryComment {#4050
        +user: App\Entity\User {#4034 …}
        +entry: App\Entity\Entry {#2419}
        +magazine: App\Entity\Magazine {#265}
        +image: null
        +parent: null
        +root: null
        +body: """
          A person in this thread already recommended having different colors for different conditions like ssh and running as root, I havent seen anyone mention this specifically but you can determine if the current working directory is writable with something like `[ -w “$(pwd)” ]` and set the color to red or print a symbol if it doesnt return true.\n
          \n
          Also I recommend putting all the code and logic for your shell prompt in a shell function, and using a substitution shell to put it into the PS1 variable like this:\n
          \n
          ```\n
          \n
          <span style="color:#323232;">__shellprompt ()\n
          </span><span style="color:#323232;">{\n
          </span><span style="color:#323232;">\tif [ "$(id -u)" = 0 ]; then\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='#'\n
          </span><span style="color:#323232;">\telse\n
          </span><span style="color:#323232;">\t\tlocal PROMPT_EMBLEM='$'\n
          </span><span style="color:#323232;">\tfi\n
          </span><span style="color:#323232;">\tprintf "%s" "$(whoami)@$(uname -n):$(pwd)"\n
          </span><span style="color:#323232;">\tprintf "n%c " "$PROMPT_EMBLEM"\n
          </span><span style="color:#323232;">}\n
          </span><span style="color:#323232;">PS1='$(__shellprompt)'\n
          </span>\n
          ```\n
          \n
          Now this is just a really barebones example, there is a whole lot more you can do like passing in the last exit code through the argv of your shellprompt function like this `PS1=‘$(__shellprompt $?)’` and like print it out if its non-zero so you wont have to like `echo $?` to see if the last command failed, but you should be able to still do this. In my testing, running the shell prompt function in the subsitiution shell didnt effect the $? variable.\n
          \n
          In my first comment on another thread about shell prompts, I posted my full shellprompt, it is slightly outdated (I just changed `hostname` to `uname -n`), if you cant find it feel free to send a message or just ask, and I will send you the code.
          """
        +lang: "en"
        +isAdult: false
        +favouriteCount: 1
        +score: 0
        +lastActive: DateTime @1699929949 {#4056
          date: 2023-11-14 03:45:49.0 +01:00
        }
        +ip: null
        +tags: [
          "323232"
        ]
        +mentions: [
          "@wolf@lemmy.zip"
        ]
        +children: Doctrine\ORM\PersistentCollection {#4051 …}
        +nested: Doctrine\ORM\PersistentCollection {#4042 …}
        +votes: Doctrine\ORM\PersistentCollection {#4045 …}
        +reports: Doctrine\ORM\PersistentCollection {#4040 …}
        +favourites: Doctrine\ORM\PersistentCollection {#4038 …}
        +notifications: Doctrine\ORM\PersistentCollection {#4036 …}
        -id: 107768
        -bodyTs: "'0':93 'abl':179 'alreadi':6 'also':58 'anoth':205 'anyon':23 'argv':142 'ask':239 'barebon':122 'c':111 'cant':228 'chang':221 'code':64,139,246 'color':10,46 'command':173 'comment':203 'condit':13 'current':33 'determin':30 'didnt':196 'differ':9,12 'directori':35 'doesnt':55 'echo':167 'effect':197 'els':98 'emblem':97,101,113 'exampl':123 'exit':138 'fail':174 'feel':231 'fi':102 'find':229 'first':202 'free':232 'full':213 'function':74,146,191 'havent':21 'hostnam':222 'id':91 'last':137,172 'like':14,40,87,133,147,152,166 'local':95,99 'logic':66 'lot':128 'mention':24 'messag':236 'n':107,110,225 'non':159 'non-zero':158 'outdat':218 'pass':134 'person':2 'post':211 'print':50,153 'printf':103,109 'prompt':70,96,100,112,190,209 'ps1':85,114,149 'put':61,81 'pwd':42,108 'realli':121 'recommend':7,60 'red':48 'return':56 'root':19 'run':17,187 'see':169 'seen':22 'send':234,243 'set':44 'shell':69,73,79,189,195,208 'shellprompt':89,115,145,150,214 'slight':217 'someth':39 'specif':26 'ssh':15 'still':181 'subsitiut':194 'substitut':78 'symbol':52 'test':186 'thread':5,206 'true':57 'u':92 'unam':106,224 'use':76 'variabl':86,199 'w':41 'whoami':105 'whole':127 'wont':163 'work':34 'writabl':37 'zero':160"
        +ranking: 0
        +commentCount: 0
        +upVotes: 0
        +downVotes: 0
        +visibility: "visible             "
        +apId: "https://lemmy.blahaj.zone/comment/4253531"
        +editedAt: null
        +createdAt: DateTimeImmutable @1699627856 {#4057
          date: 2023-11-10 15:50:56.0 +01:00
        }
      }
      +root: App\Entity\EntryComment {#4050}
      +body: """
        Wow, thank you very much! :-)\n
        \n
        This example is very enlightening. I was kind of aware that one could run shell functions and even use a GIT function in my prompt, but I never thought it through and your example brings the point home.\n
        \n
        I’ll waste most probably a few hours to find my perfect prompt function!\n
        \n
        (Mandatory xkcd link [Nerd Sniping](https://xkcd.com/356/))
        """
      +lang: "en"
      +isAdult: false
      +favouriteCount: 1
      +score: 0
      +lastActive: DateTime @1699745737 {#4798
        date: 2023-11-12 00:35:37.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
        "@12510198@lemmy.blahaj.zone"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4801 …}
      +nested: Doctrine\ORM\PersistentCollection {#4803 …}
      +votes: Doctrine\ORM\PersistentCollection {#4805 …}
      +reports: Doctrine\ORM\PersistentCollection {#4807 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4809 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4811 …}
      -id: 113488
      -bodyTs: "'/356/))':65 'awar':15 'bring':40 'could':18 'enlighten':10 'even':23 'exampl':7,39 'find':53 'function':21,27,57 'git':26 'home':43 'hour':51 'kind':13 'link':60 'll':45 'mandatori':58 'much':5 'nerd':61 'never':33 'one':17 'perfect':55 'point':42 'probabl':48 'prompt':30,56 'run':19 'shell':20 'snipe':62 'thank':2 'thought':34 'use':24 'wast':46 'wow':1 'xkcd':59 'xkcd.com':64 'xkcd.com/356/))':63"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.zip/comment/4574993"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699745737 {#4799
        date: 2023-11-12 00:35:37.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4050}
    +body: """
      Im glad I was able to help!\n
      \n
      Something that should be noted when adding colors to your shell prompt function is adding the non printable characters that keep the terminal from buggin out, this caused me a massive headache until I figured it out. When putting it in the PS1 variable directly you will put `[` to begin a color sequence and `]` to end one, but printf will print a literal `[` and `]` so instead you will have to use `
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 1
    +score: 0
    +lastActive: DateTime @1699766191 {#4836
      date: 2023-11-12 06:16:31.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@12510198@lemmy.blahaj.zone"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4839 …}
    +nested: Doctrine\ORM\PersistentCollection {#4841 …}
    +votes: Doctrine\ORM\PersistentCollection {#4843 …}
    +reports: Doctrine\ORM\PersistentCollection {#4845 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4847 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4849 …}
    -id: 114396
    -bodyTs: "'abl':5 'ad':14,22 'begin':57 'buggin':32 'caus':35 'charact':26 'color':15,59 'direct':52 'end':63 'figur':42 'function':20 'glad':2 'headach':39 'help':7 'im':1 'instead':73 'keep':28 'liter':70 'massiv':38 'non':24 'note':12 'one':64 'print':68 'printabl':25 'printf':66 'prompt':19 'ps1':50 'put':46,55 'sequenc':60 'shell':18 'someth':8 'termin':30 'use':78 'variabl':51"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.blahaj.zone/comment/4295802"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699766191 {#4837
      date: 2023-11-12 06:16:31.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4050}
  +body: """
    Thanks, of course the color escapes are the first thing I ran into yesterday, when I played around with prompt functions. ;-)\n
    \n
    Porting your prompt command to another language is a very nice and practical little project, perhaps I will give it a go with Go. (Pun intended ;-))\n
    \n
    Have a great week!
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699798872 {#4877
    date: 2023-11-12 15:21:12.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@12510198@lemmy.blahaj.zone"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4873 …}
  +nested: Doctrine\ORM\PersistentCollection {#4869 …}
  +votes: Doctrine\ORM\PersistentCollection {#4867 …}
  +reports: Doctrine\ORM\PersistentCollection {#4882 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4884 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4886 …}
  -id: 115603
  -bodyTs: "'anoth':27 'around':18 'color':5 'command':25 'cours':3 'escap':6 'first':9 'function':21 'give':40 'go':43,45 'great':50 'intend':47 'languag':28 'littl':35 'nice':32 'perhap':37 'play':17 'port':22 'practic':34 'project':36 'prompt':20,24 'pun':46 'ran':12 'thank':1 'thing':10 'week':51 'yesterday':14"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4591944"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699798872 {#4880
    date: 2023-11-12 15:21:12.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
25 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
26 DENIED moderate
App\Entity\EntryComment {#4135
  +user: App\Entity\User {#4148 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I can recommend [Starship](https://starship.rs/)."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699688150 {#4129
    date: 2023-11-11 08:35:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4136 …}
  +nested: Doctrine\ORM\PersistentCollection {#4138 …}
  +votes: Doctrine\ORM\PersistentCollection {#4140 …}
  +reports: Doctrine\ORM\PersistentCollection {#4142 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
  -id: 106698
  -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4678629"
  +editedAt: DateTimeImmutable @1699669980 {#4130
    date: 2023-11-11 03:33:00.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699595437 {#4131
    date: 2023-11-10 06:50:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
27 DENIED edit
App\Entity\EntryComment {#4135
  +user: App\Entity\User {#4148 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I can recommend [Starship](https://starship.rs/)."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699688150 {#4129
    date: 2023-11-11 08:35:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4136 …}
  +nested: Doctrine\ORM\PersistentCollection {#4138 …}
  +votes: Doctrine\ORM\PersistentCollection {#4140 …}
  +reports: Doctrine\ORM\PersistentCollection {#4142 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
  -id: 106698
  -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4678629"
  +editedAt: DateTimeImmutable @1699669980 {#4130
    date: 2023-11-11 03:33:00.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699595437 {#4131
    date: 2023-11-10 06:50:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
28 DENIED moderate
App\Entity\EntryComment {#4135
  +user: App\Entity\User {#4148 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I can recommend [Starship](https://starship.rs/)."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 4
  +score: 0
  +lastActive: DateTime @1699688150 {#4129
    date: 2023-11-11 08:35:50.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4136 …}
  +nested: Doctrine\ORM\PersistentCollection {#4138 …}
  +votes: Doctrine\ORM\PersistentCollection {#4140 …}
  +reports: Doctrine\ORM\PersistentCollection {#4142 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
  -id: 106698
  -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4678629"
  +editedAt: DateTimeImmutable @1699669980 {#4130
    date: 2023-11-11 03:33:00.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699595437 {#4131
    date: 2023-11-10 06:50:37.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
29 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
30 DENIED moderate
App\Entity\EntryComment {#4784
  +user: Proxies\__CG__\App\Entity\User {#4785 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4135
    +user: App\Entity\User {#4148 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I can recommend [Starship](https://starship.rs/)."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1699688150 {#4129
      date: 2023-11-11 08:35:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4136 …}
    +nested: Doctrine\ORM\PersistentCollection {#4138 …}
    +votes: Doctrine\ORM\PersistentCollection {#4140 …}
    +reports: Doctrine\ORM\PersistentCollection {#4142 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
    -id: 106698
    -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4678629"
    +editedAt: DateTimeImmutable @1699669980 {#4130
      date: 2023-11-11 03:33:00.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699595437 {#4131
      date: 2023-11-10 06:50:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4135}
  +body: """
    Definitely! Much more user-friendly and expandable than configuring PS1 manually.\n
    \n
    [This is what mine looks like.](https://i.imgur.com/ziLXMzt.png)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699614711 {#4782
    date: 2023-11-10 12:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@Knusper@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4786 …}
  +nested: Doctrine\ORM\PersistentCollection {#4788 …}
  +votes: Doctrine\ORM\PersistentCollection {#4790 …}
  +reports: Doctrine\ORM\PersistentCollection {#4792 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4794 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4796 …}
  -id: 107210
  -bodyTs: "'/zilxmzt.png)':21 'configur':10 'definit':1 'expand':8 'friend':6 'i.imgur.com':20 'i.imgur.com/zilxmzt.png)':19 'like':18 'look':17 'manual':12 'mine':16 'much':2 'ps1':11 'user':5 'user-friend':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/5948788"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699614711 {#4783
    date: 2023-11-10 12:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
31 DENIED edit
App\Entity\EntryComment {#4784
  +user: Proxies\__CG__\App\Entity\User {#4785 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4135
    +user: App\Entity\User {#4148 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I can recommend [Starship](https://starship.rs/)."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1699688150 {#4129
      date: 2023-11-11 08:35:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4136 …}
    +nested: Doctrine\ORM\PersistentCollection {#4138 …}
    +votes: Doctrine\ORM\PersistentCollection {#4140 …}
    +reports: Doctrine\ORM\PersistentCollection {#4142 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
    -id: 106698
    -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4678629"
    +editedAt: DateTimeImmutable @1699669980 {#4130
      date: 2023-11-11 03:33:00.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699595437 {#4131
      date: 2023-11-10 06:50:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4135}
  +body: """
    Definitely! Much more user-friendly and expandable than configuring PS1 manually.\n
    \n
    [This is what mine looks like.](https://i.imgur.com/ziLXMzt.png)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699614711 {#4782
    date: 2023-11-10 12:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@Knusper@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4786 …}
  +nested: Doctrine\ORM\PersistentCollection {#4788 …}
  +votes: Doctrine\ORM\PersistentCollection {#4790 …}
  +reports: Doctrine\ORM\PersistentCollection {#4792 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4794 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4796 …}
  -id: 107210
  -bodyTs: "'/zilxmzt.png)':21 'configur':10 'definit':1 'expand':8 'friend':6 'i.imgur.com':20 'i.imgur.com/zilxmzt.png)':19 'like':18 'look':17 'manual':12 'mine':16 'much':2 'ps1':11 'user':5 'user-friend':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/5948788"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699614711 {#4783
    date: 2023-11-10 12:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
32 DENIED moderate
App\Entity\EntryComment {#4784
  +user: Proxies\__CG__\App\Entity\User {#4785 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4135
    +user: App\Entity\User {#4148 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I can recommend [Starship](https://starship.rs/)."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 4
    +score: 0
    +lastActive: DateTime @1699688150 {#4129
      date: 2023-11-11 08:35:50.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4136 …}
    +nested: Doctrine\ORM\PersistentCollection {#4138 …}
    +votes: Doctrine\ORM\PersistentCollection {#4140 …}
    +reports: Doctrine\ORM\PersistentCollection {#4142 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4144 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4146 …}
    -id: 106698
    -bodyTs: "'/).':7 'recommend':3 'starship':4 'starship.rs':6 'starship.rs/).':5"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4678629"
    +editedAt: DateTimeImmutable @1699669980 {#4130
      date: 2023-11-11 03:33:00.0 +01:00
    }
    +createdAt: DateTimeImmutable @1699595437 {#4131
      date: 2023-11-10 06:50:37.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4135}
  +body: """
    Definitely! Much more user-friendly and expandable than configuring PS1 manually.\n
    \n
    [This is what mine looks like.](https://i.imgur.com/ziLXMzt.png)
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699614711 {#4782
    date: 2023-11-10 12:11:51.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@Knusper@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4786 …}
  +nested: Doctrine\ORM\PersistentCollection {#4788 …}
  +votes: Doctrine\ORM\PersistentCollection {#4790 …}
  +reports: Doctrine\ORM\PersistentCollection {#4792 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4794 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4796 …}
  -id: 107210
  -bodyTs: "'/zilxmzt.png)':21 'configur':10 'definit':1 'expand':8 'friend':6 'i.imgur.com':20 'i.imgur.com/zilxmzt.png)':19 'like':18 'look':17 'manual':12 'mine':16 'much':2 'ps1':11 'user':5 'user-friend':4"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemm.ee/comment/5948788"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699614711 {#4783
    date: 2023-11-10 12:11:51.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
33 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
34 DENIED moderate
App\Entity\EntryComment {#4208
  +user: App\Entity\User {#4221 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Powerline!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699592512 {#4203
    date: 2023-11-10 06:01:52.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4209 …}
  +nested: Doctrine\ORM\PersistentCollection {#4211 …}
  +votes: Doctrine\ORM\PersistentCollection {#4213 …}
  +reports: Doctrine\ORM\PersistentCollection {#4215 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4219 …}
  -id: 106610
  -bodyTs: "'powerlin':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5667085"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699592512 {#4204
    date: 2023-11-10 06:01:52.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
35 DENIED edit
App\Entity\EntryComment {#4208
  +user: App\Entity\User {#4221 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Powerline!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699592512 {#4203
    date: 2023-11-10 06:01:52.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4209 …}
  +nested: Doctrine\ORM\PersistentCollection {#4211 …}
  +votes: Doctrine\ORM\PersistentCollection {#4213 …}
  +reports: Doctrine\ORM\PersistentCollection {#4215 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4219 …}
  -id: 106610
  -bodyTs: "'powerlin':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5667085"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699592512 {#4204
    date: 2023-11-10 06:01:52.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
36 DENIED moderate
App\Entity\EntryComment {#4208
  +user: App\Entity\User {#4221 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Powerline!"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699592512 {#4203
    date: 2023-11-10 06:01:52.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4209 …}
  +nested: Doctrine\ORM\PersistentCollection {#4211 …}
  +votes: Doctrine\ORM\PersistentCollection {#4213 …}
  +reports: Doctrine\ORM\PersistentCollection {#4215 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4217 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4219 …}
  -id: 106610
  -bodyTs: "'powerlin':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5667085"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699592512 {#4204
    date: 2023-11-10 06:01:52.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
37 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
38 DENIED moderate
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700812914 {#4278
    date: 2023-11-24 09:01:54.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 106096
  -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4671325"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699577775 {#4279
    date: 2023-11-10 01:56:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
39 DENIED edit
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700812914 {#4278
    date: 2023-11-24 09:01:54.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 106096
  -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4671325"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699577775 {#4279
    date: 2023-11-10 01:56:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
40 DENIED moderate
App\Entity\EntryComment {#4284
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1700812914 {#4278
    date: 2023-11-24 09:01:54.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4285 …}
  +nested: Doctrine\ORM\PersistentCollection {#4287 …}
  +votes: Doctrine\ORM\PersistentCollection {#4289 …}
  +reports: Doctrine\ORM\PersistentCollection {#4291 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
  -id: 106096
  -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4671325"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699577775 {#4279
    date: 2023-11-10 01:56:15.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
41 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
42 DENIED moderate
App\Entity\EntryComment {#4768
  +user: Proxies\__CG__\App\Entity\User {#4769 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4284
    +user: App\Entity\User {#4297 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700812914 {#4278
      date: 2023-11-24 09:01:54.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4285 …}
    +nested: Doctrine\ORM\PersistentCollection {#4287 …}
    +votes: Doctrine\ORM\PersistentCollection {#4289 …}
    +reports: Doctrine\ORM\PersistentCollection {#4291 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
    -id: 106096
    -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4671325"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699577775 {#4279
      date: 2023-11-10 01:56:15.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700027244 {#4766
    date: 2023-11-15 06:47:24.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4770 …}
  +nested: Doctrine\ORM\PersistentCollection {#4772 …}
  +votes: Doctrine\ORM\PersistentCollection {#4774 …}
  +reports: Doctrine\ORM\PersistentCollection {#4776 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
  -id: 126222
  -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/4873328"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700027244 {#4767
    date: 2023-11-15 06:47:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
43 DENIED edit
App\Entity\EntryComment {#4768
  +user: Proxies\__CG__\App\Entity\User {#4769 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4284
    +user: App\Entity\User {#4297 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700812914 {#4278
      date: 2023-11-24 09:01:54.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4285 …}
    +nested: Doctrine\ORM\PersistentCollection {#4287 …}
    +votes: Doctrine\ORM\PersistentCollection {#4289 …}
    +reports: Doctrine\ORM\PersistentCollection {#4291 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
    -id: 106096
    -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4671325"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699577775 {#4279
      date: 2023-11-10 01:56:15.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700027244 {#4766
    date: 2023-11-15 06:47:24.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4770 …}
  +nested: Doctrine\ORM\PersistentCollection {#4772 …}
  +votes: Doctrine\ORM\PersistentCollection {#4774 …}
  +reports: Doctrine\ORM\PersistentCollection {#4776 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
  -id: 126222
  -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/4873328"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700027244 {#4767
    date: 2023-11-15 06:47:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
44 DENIED moderate
App\Entity\EntryComment {#4768
  +user: Proxies\__CG__\App\Entity\User {#4769 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4284
    +user: App\Entity\User {#4297 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1700812914 {#4278
      date: 2023-11-24 09:01:54.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4285 …}
    +nested: Doctrine\ORM\PersistentCollection {#4287 …}
    +votes: Doctrine\ORM\PersistentCollection {#4289 …}
    +reports: Doctrine\ORM\PersistentCollection {#4291 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
    -id: 106096
    -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://feddit.de/comment/4671325"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699577775 {#4279
      date: 2023-11-10 01:56:15.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 0
  +score: 0
  +lastActive: DateTime @1700027244 {#4766
    date: 2023-11-15 06:47:24.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4770 …}
  +nested: Doctrine\ORM\PersistentCollection {#4772 …}
  +votes: Doctrine\ORM\PersistentCollection {#4774 …}
  +reports: Doctrine\ORM\PersistentCollection {#4776 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
  -id: 126222
  -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://discuss.tchncs.de/comment/4873328"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700027244 {#4767
    date: 2023-11-15 06:47:24.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
45 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
46 DENIED moderate
App\Entity\EntryComment {#4853
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4768
    +user: Proxies\__CG__\App\Entity\User {#4769 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4284
      +user: App\Entity\User {#4297 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700812914 {#4278
        date: 2023-11-24 09:01:54.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4285 …}
      +nested: Doctrine\ORM\PersistentCollection {#4287 …}
      +votes: Doctrine\ORM\PersistentCollection {#4289 …}
      +reports: Doctrine\ORM\PersistentCollection {#4291 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
      -id: 106096
      -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.de/comment/4671325"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699577775 {#4279
        date: 2023-11-10 01:56:15.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4284}
    +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700027244 {#4766
      date: 2023-11-15 06:47:24.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@vojel@feddit.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4770 …}
    +nested: Doctrine\ORM\PersistentCollection {#4772 …}
    +votes: Doctrine\ORM\PersistentCollection {#4774 …}
    +reports: Doctrine\ORM\PersistentCollection {#4776 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
    -id: 126222
    -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/4873328"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700027244 {#4767
      date: 2023-11-15 06:47:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "Yes this works with powerlevel10k theme for oh my zsh."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700431405 {#4851
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
    "@Kobaltauge@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4854 …}
  +nested: Doctrine\ORM\PersistentCollection {#4856 …}
  +votes: Doctrine\ORM\PersistentCollection {#4858 …}
  +reports: Doctrine\ORM\PersistentCollection {#4860 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4862 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4864 …}
  -id: 141107
  -bodyTs: "'oh':8 'powerlevel10k':5 'theme':6 'work':3 'yes':1 'zsh':10"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4965075"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700431405 {#4852
    date: 2023-11-19 23:03:25.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
47 DENIED edit
App\Entity\EntryComment {#4853
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4768
    +user: Proxies\__CG__\App\Entity\User {#4769 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4284
      +user: App\Entity\User {#4297 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700812914 {#4278
        date: 2023-11-24 09:01:54.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4285 …}
      +nested: Doctrine\ORM\PersistentCollection {#4287 …}
      +votes: Doctrine\ORM\PersistentCollection {#4289 …}
      +reports: Doctrine\ORM\PersistentCollection {#4291 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
      -id: 106096
      -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.de/comment/4671325"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699577775 {#4279
        date: 2023-11-10 01:56:15.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4284}
    +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700027244 {#4766
      date: 2023-11-15 06:47:24.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@vojel@feddit.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4770 …}
    +nested: Doctrine\ORM\PersistentCollection {#4772 …}
    +votes: Doctrine\ORM\PersistentCollection {#4774 …}
    +reports: Doctrine\ORM\PersistentCollection {#4776 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
    -id: 126222
    -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/4873328"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700027244 {#4767
      date: 2023-11-15 06:47:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "Yes this works with powerlevel10k theme for oh my zsh."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700431405 {#4851
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
    "@Kobaltauge@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4854 …}
  +nested: Doctrine\ORM\PersistentCollection {#4856 …}
  +votes: Doctrine\ORM\PersistentCollection {#4858 …}
  +reports: Doctrine\ORM\PersistentCollection {#4860 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4862 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4864 …}
  -id: 141107
  -bodyTs: "'oh':8 'powerlevel10k':5 'theme':6 'work':3 'yes':1 'zsh':10"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4965075"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700431405 {#4852
    date: 2023-11-19 23:03:25.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
48 DENIED moderate
App\Entity\EntryComment {#4853
  +user: App\Entity\User {#4297 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4768
    +user: Proxies\__CG__\App\Entity\User {#4769 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4284
      +user: App\Entity\User {#4297 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I got different colors for Kubernetes clusters. Like green for testing cluster, yellow for development and red for production. Always taking a Quick Look before I do something"
      +lang: "en"
      +isAdult: false
      +favouriteCount: 2
      +score: 0
      +lastActive: DateTime @1700812914 {#4278
        date: 2023-11-24 09:01:54.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4285 …}
      +nested: Doctrine\ORM\PersistentCollection {#4287 …}
      +votes: Doctrine\ORM\PersistentCollection {#4289 …}
      +reports: Doctrine\ORM\PersistentCollection {#4291 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4293 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4295 …}
      -id: 106096
      -bodyTs: "'alway':20 'cluster':7,12 'color':4 'develop':15 'differ':3 'got':2 'green':9 'kubernet':6 'like':8 'look':24 'product':19 'quick':23 'red':17 'someth':28 'take':21 'test':11 'yellow':13"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://feddit.de/comment/4671325"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699577775 {#4279
        date: 2023-11-10 01:56:15.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4284}
    +body: "This sounds awesome. Do you change the color based on the selected cluster? Do you set an environment variable?"
    +lang: "en"
    +isAdult: false
    +favouriteCount: 0
    +score: 0
    +lastActive: DateTime @1700027244 {#4766
      date: 2023-11-15 06:47:24.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@vojel@feddit.de"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4770 …}
    +nested: Doctrine\ORM\PersistentCollection {#4772 …}
    +votes: Doctrine\ORM\PersistentCollection {#4774 …}
    +reports: Doctrine\ORM\PersistentCollection {#4776 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4778 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4780 …}
    -id: 126222
    -bodyTs: "'awesom':3 'base':9 'chang':6 'cluster':13 'color':8 'environ':18 'select':12 'set':16 'sound':2 'variabl':19"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://discuss.tchncs.de/comment/4873328"
    +editedAt: null
    +createdAt: DateTimeImmutable @1700027244 {#4767
      date: 2023-11-15 06:47:24.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4284}
  +body: "Yes this works with powerlevel10k theme for oh my zsh."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1700431405 {#4851
    date: 2023-11-19 23:03:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@vojel@feddit.de"
    "@Kobaltauge@discuss.tchncs.de"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4854 …}
  +nested: Doctrine\ORM\PersistentCollection {#4856 …}
  +votes: Doctrine\ORM\PersistentCollection {#4858 …}
  +reports: Doctrine\ORM\PersistentCollection {#4860 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4862 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4864 …}
  -id: 141107
  -bodyTs: "'oh':8 'powerlevel10k':5 'theme':6 'work':3 'yes':1 'zsh':10"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://feddit.de/comment/4965075"
  +editedAt: null
  +createdAt: DateTimeImmutable @1700431405 {#4852
    date: 2023-11-19 23:03:25.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
49 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
50 DENIED moderate
App\Entity\EntryComment {#4359
  +user: App\Entity\User {#4372 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Use `PS1=“▌t▐nw→”` to display your local time each time you press enter. And make aliases of lengthy commands such as `alias internettest=“curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -”` (You need to install python to run this.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699575764 {#4353
    date: 2023-11-10 01:22:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4360 …}
  +nested: Doctrine\ORM\PersistentCollection {#4362 …}
  +votes: Doctrine\ORM\PersistentCollection {#4364 …}
  +reports: Doctrine\ORM\PersistentCollection {#4366 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
  -id: 106000
  -bodyTs: "'/sivel/speedtest-cli/master/speedtest.py':29 'alia':23 'alias':17 'command':20 'curl':25 'display':6 'enter':14 'instal':34 'internettest':24 'lengthi':19 'local':8 'make':16 'need':32 'nw':4 'press':13 'ps1':2 'python':30,35 'raw.githubusercontent.com':28 'raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py':27 'run':37 'time':9,11 'use':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5194136"
  +editedAt: DateTimeImmutable @1699652475 {#4354
    date: 2023-11-10 22:41:15.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699575764 {#4355
    date: 2023-11-10 01:22:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
51 DENIED edit
App\Entity\EntryComment {#4359
  +user: App\Entity\User {#4372 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Use `PS1=“▌t▐nw→”` to display your local time each time you press enter. And make aliases of lengthy commands such as `alias internettest=“curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -”` (You need to install python to run this.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699575764 {#4353
    date: 2023-11-10 01:22:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4360 …}
  +nested: Doctrine\ORM\PersistentCollection {#4362 …}
  +votes: Doctrine\ORM\PersistentCollection {#4364 …}
  +reports: Doctrine\ORM\PersistentCollection {#4366 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
  -id: 106000
  -bodyTs: "'/sivel/speedtest-cli/master/speedtest.py':29 'alia':23 'alias':17 'command':20 'curl':25 'display':6 'enter':14 'instal':34 'internettest':24 'lengthi':19 'local':8 'make':16 'need':32 'nw':4 'press':13 'ps1':2 'python':30,35 'raw.githubusercontent.com':28 'raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py':27 'run':37 'time':9,11 'use':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5194136"
  +editedAt: DateTimeImmutable @1699652475 {#4354
    date: 2023-11-10 22:41:15.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699575764 {#4355
    date: 2023-11-10 01:22:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
52 DENIED moderate
App\Entity\EntryComment {#4359
  +user: App\Entity\User {#4372 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Use `PS1=“▌t▐nw→”` to display your local time each time you press enter. And make aliases of lengthy commands such as `alias internettest=“curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -”` (You need to install python to run this.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699575764 {#4353
    date: 2023-11-10 01:22:44.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4360 …}
  +nested: Doctrine\ORM\PersistentCollection {#4362 …}
  +votes: Doctrine\ORM\PersistentCollection {#4364 …}
  +reports: Doctrine\ORM\PersistentCollection {#4366 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4368 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4370 …}
  -id: 106000
  -bodyTs: "'/sivel/speedtest-cli/master/speedtest.py':29 'alia':23 'alias':17 'command':20 'curl':25 'display':6 'enter':14 'instal':34 'internettest':24 'lengthi':19 'local':8 'make':16 'need':32 'nw':4 'press':13 'ps1':2 'python':30,35 'raw.githubusercontent.com':28 'raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py':27 'run':37 'time':9,11 'use':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5194136"
  +editedAt: DateTimeImmutable @1699652475 {#4354
    date: 2023-11-10 22:41:15.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699575764 {#4355
    date: 2023-11-10 01:22:44.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
53 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
54 DENIED moderate
App\Entity\EntryComment {#4434
  +user: App\Entity\User {#4447 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I customized mine to show git branch when in a git project directory."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699573956 {#4429
    date: 2023-11-10 00:52:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4435 …}
  +nested: Doctrine\ORM\PersistentCollection {#4437 …}
  +votes: Doctrine\ORM\PersistentCollection {#4439 …}
  +reports: Doctrine\ORM\PersistentCollection {#4441 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4443 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4445 …}
  -id: 105908
  -bodyTs: "'branch':7 'custom':2 'directori':13 'git':6,11 'mine':3 'project':12 'show':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5193155"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699573956 {#4430
    date: 2023-11-10 00:52:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
55 DENIED edit
App\Entity\EntryComment {#4434
  +user: App\Entity\User {#4447 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I customized mine to show git branch when in a git project directory."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699573956 {#4429
    date: 2023-11-10 00:52:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4435 …}
  +nested: Doctrine\ORM\PersistentCollection {#4437 …}
  +votes: Doctrine\ORM\PersistentCollection {#4439 …}
  +reports: Doctrine\ORM\PersistentCollection {#4441 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4443 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4445 …}
  -id: 105908
  -bodyTs: "'branch':7 'custom':2 'directori':13 'git':6,11 'mine':3 'project':12 'show':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5193155"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699573956 {#4430
    date: 2023-11-10 00:52:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
56 DENIED moderate
App\Entity\EntryComment {#4434
  +user: App\Entity\User {#4447 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I customized mine to show git branch when in a git project directory."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 1
  +score: 0
  +lastActive: DateTime @1699573956 {#4429
    date: 2023-11-10 00:52:36.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4435 …}
  +nested: Doctrine\ORM\PersistentCollection {#4437 …}
  +votes: Doctrine\ORM\PersistentCollection {#4439 …}
  +reports: Doctrine\ORM\PersistentCollection {#4441 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4443 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4445 …}
  -id: 105908
  -bodyTs: "'branch':7 'custom':2 'directori':13 'git':6,11 'mine':3 'project':12 'show':5"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5193155"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699573956 {#4430
    date: 2023-11-10 00:52:36.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
57 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
58 DENIED moderate
App\Entity\EntryComment {#4509
  +user: App\Entity\User {#4522 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Most prompt customizers have an option for showing how long last command ran and whether it succeeded/failed or simply prompt timestamp, it's often default. I use Tide, there's also Starship and a number of others. You can also roll your own ofcourse."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699565790 {#4503
    date: 2023-11-09 22:36:30.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4510 …}
  +nested: Doctrine\ORM\PersistentCollection {#4512 …}
  +votes: Doctrine\ORM\PersistentCollection {#4514 …}
  +reports: Doctrine\ORM\PersistentCollection {#4516 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4518 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4520 …}
  -id: 105534
  -bodyTs: "'also':31,40 'command':12 'custom':3 'default':25 'last':11 'long':10 'number':35 'ofcours':44 'often':24 'option':6 'other':37 'prompt':2,20 'ran':13 'roll':41 'show':8 'simpli':19 'starship':32 'succeeded/failed':17 'tide':28 'timestamp':21 'use':27 'whether':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.social/m/linux@lemmy.ml/t/612744/-/comment/3465102"
  +editedAt: DateTimeImmutable @1699641449 {#4504
    date: 2023-11-10 19:37:29.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699565790 {#4505
    date: 2023-11-09 22:36:30.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
59 DENIED edit
App\Entity\EntryComment {#4509
  +user: App\Entity\User {#4522 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Most prompt customizers have an option for showing how long last command ran and whether it succeeded/failed or simply prompt timestamp, it's often default. I use Tide, there's also Starship and a number of others. You can also roll your own ofcourse."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699565790 {#4503
    date: 2023-11-09 22:36:30.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4510 …}
  +nested: Doctrine\ORM\PersistentCollection {#4512 …}
  +votes: Doctrine\ORM\PersistentCollection {#4514 …}
  +reports: Doctrine\ORM\PersistentCollection {#4516 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4518 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4520 …}
  -id: 105534
  -bodyTs: "'also':31,40 'command':12 'custom':3 'default':25 'last':11 'long':10 'number':35 'ofcours':44 'often':24 'option':6 'other':37 'prompt':2,20 'ran':13 'roll':41 'show':8 'simpli':19 'starship':32 'succeeded/failed':17 'tide':28 'timestamp':21 'use':27 'whether':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.social/m/linux@lemmy.ml/t/612744/-/comment/3465102"
  +editedAt: DateTimeImmutable @1699641449 {#4504
    date: 2023-11-10 19:37:29.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699565790 {#4505
    date: 2023-11-09 22:36:30.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
60 DENIED moderate
App\Entity\EntryComment {#4509
  +user: App\Entity\User {#4522 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "Most prompt customizers have an option for showing how long last command ran and whether it succeeded/failed or simply prompt timestamp, it's often default. I use Tide, there's also Starship and a number of others. You can also roll your own ofcourse."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699565790 {#4503
    date: 2023-11-09 22:36:30.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4510 …}
  +nested: Doctrine\ORM\PersistentCollection {#4512 …}
  +votes: Doctrine\ORM\PersistentCollection {#4514 …}
  +reports: Doctrine\ORM\PersistentCollection {#4516 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4518 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4520 …}
  -id: 105534
  -bodyTs: "'also':31,40 'command':12 'custom':3 'default':25 'last':11 'long':10 'number':35 'ofcours':44 'often':24 'option':6 'other':37 'prompt':2,20 'ran':13 'roll':41 'show':8 'simpli':19 'starship':32 'succeeded/failed':17 'tide':28 'timestamp':21 'use':27 'whether':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://kbin.social/m/linux@lemmy.ml/t/612744/-/comment/3465102"
  +editedAt: DateTimeImmutable @1699641449 {#4504
    date: 2023-11-10 19:37:29.0 +01:00
  }
  +createdAt: DateTimeImmutable @1699565790 {#4505
    date: 2023-11-09 22:36:30.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
61 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
62 DENIED moderate
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4595 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    If you like customizing your shell, there are really cool things one can do with zsh.\n
    \n
    I have mine set up with suggestions to complete the name of the program, or even command line options for it.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699633657 {#4577
    date: 2023-11-10 17:27:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4583 …}
  +nested: Doctrine\ORM\PersistentCollection {#4585 …}
  +votes: Doctrine\ORM\PersistentCollection {#4587 …}
  +reports: Doctrine\ORM\PersistentCollection {#4589 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
  -id: 105241
  -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/4669979"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699559708 {#4578
    date: 2023-11-09 20:55:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
63 DENIED edit
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4595 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    If you like customizing your shell, there are really cool things one can do with zsh.\n
    \n
    I have mine set up with suggestions to complete the name of the program, or even command line options for it.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699633657 {#4577
    date: 2023-11-10 17:27:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4583 …}
  +nested: Doctrine\ORM\PersistentCollection {#4585 …}
  +votes: Doctrine\ORM\PersistentCollection {#4587 …}
  +reports: Doctrine\ORM\PersistentCollection {#4589 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
  -id: 105241
  -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/4669979"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699559708 {#4578
    date: 2023-11-09 20:55:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
64 DENIED moderate
App\Entity\EntryComment {#4582
  +user: App\Entity\User {#4595 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: """
    If you like customizing your shell, there are really cool things one can do with zsh.\n
    \n
    I have mine set up with suggestions to complete the name of the program, or even command line options for it.
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699633657 {#4577
    date: 2023-11-10 17:27:37.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4583 …}
  +nested: Doctrine\ORM\PersistentCollection {#4585 …}
  +votes: Doctrine\ORM\PersistentCollection {#4587 …}
  +reports: Doctrine\ORM\PersistentCollection {#4589 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
  -id: 105241
  -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://programming.dev/comment/4669979"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699559708 {#4578
    date: 2023-11-09 20:55:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
65 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
66 DENIED moderate
App\Entity\EntryComment {#4753
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4595 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      If you like customizing your shell, there are really cool things one can do with zsh.\n
      \n
      I have mine set up with suggestions to complete the name of the program, or even command line options for it.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1699633657 {#4577
      date: 2023-11-10 17:27:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4583 …}
    +nested: Doctrine\ORM\PersistentCollection {#4585 …}
    +votes: Doctrine\ORM\PersistentCollection {#4587 …}
    +reports: Doctrine\ORM\PersistentCollection {#4589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
    -id: 105241
    -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://programming.dev/comment/4669979"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699559708 {#4578
      date: 2023-11-09 20:55:08.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4582}
  +body: "zsh … it is totally awesome, I saw a lot of crazy autocomplete stuff by people using it. I stick to bash mostly because it is simply installed everywhere and good enough for my needs. (With some help like autojump for bash.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699560002 {#4751
    date: 2023-11-09 21:00:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@multicorn@programming.dev"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4754 …}
  +nested: Doctrine\ORM\PersistentCollection {#4756 …}
  +votes: Doctrine\ORM\PersistentCollection {#4758 …}
  +reports: Doctrine\ORM\PersistentCollection {#4760 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4762 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4764 …}
  -id: 105258
  -bodyTs: "'autocomplet':12 'autojump':39 'awesom':5 'bash':21,41 'crazi':11 'enough':31 'everywher':28 'good':30 'help':37 'instal':27 'like':38 'lot':9 'most':22 'need':34 'peopl':15 'saw':7 'simpli':26 'stick':19 'stuff':13 'total':4 'use':16 'zsh':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506205"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560002 {#4752
    date: 2023-11-09 21:00:02.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
67 DENIED edit
App\Entity\EntryComment {#4753
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4595 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      If you like customizing your shell, there are really cool things one can do with zsh.\n
      \n
      I have mine set up with suggestions to complete the name of the program, or even command line options for it.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1699633657 {#4577
      date: 2023-11-10 17:27:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4583 …}
    +nested: Doctrine\ORM\PersistentCollection {#4585 …}
    +votes: Doctrine\ORM\PersistentCollection {#4587 …}
    +reports: Doctrine\ORM\PersistentCollection {#4589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
    -id: 105241
    -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://programming.dev/comment/4669979"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699559708 {#4578
      date: 2023-11-09 20:55:08.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4582}
  +body: "zsh … it is totally awesome, I saw a lot of crazy autocomplete stuff by people using it. I stick to bash mostly because it is simply installed everywhere and good enough for my needs. (With some help like autojump for bash.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699560002 {#4751
    date: 2023-11-09 21:00:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@multicorn@programming.dev"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4754 …}
  +nested: Doctrine\ORM\PersistentCollection {#4756 …}
  +votes: Doctrine\ORM\PersistentCollection {#4758 …}
  +reports: Doctrine\ORM\PersistentCollection {#4760 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4762 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4764 …}
  -id: 105258
  -bodyTs: "'autocomplet':12 'autojump':39 'awesom':5 'bash':21,41 'crazi':11 'enough':31 'everywher':28 'good':30 'help':37 'instal':27 'like':38 'lot':9 'most':22 'need':34 'peopl':15 'saw':7 'simpli':26 'stick':19 'stuff':13 'total':4 'use':16 'zsh':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506205"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560002 {#4752
    date: 2023-11-09 21:00:02.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
68 DENIED moderate
App\Entity\EntryComment {#4753
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4582
    +user: App\Entity\User {#4595 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: """
      If you like customizing your shell, there are really cool things one can do with zsh.\n
      \n
      I have mine set up with suggestions to complete the name of the program, or even command line options for it.
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 3
    +score: 0
    +lastActive: DateTime @1699633657 {#4577
      date: 2023-11-10 17:27:37.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4583 …}
    +nested: Doctrine\ORM\PersistentCollection {#4585 …}
    +votes: Doctrine\ORM\PersistentCollection {#4587 …}
    +reports: Doctrine\ORM\PersistentCollection {#4589 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4591 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4593 …}
    -id: 105241
    -bodyTs: "'command':33 'complet':25 'cool':10 'custom':4 'even':32 'like':3 'line':34 'mine':19 'name':27 'one':12 'option':35 'program':30 'realli':9 'set':20 'shell':6 'suggest':23 'thing':11 'zsh':16"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://programming.dev/comment/4669979"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699559708 {#4578
      date: 2023-11-09 20:55:08.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4582}
  +body: "zsh … it is totally awesome, I saw a lot of crazy autocomplete stuff by people using it. I stick to bash mostly because it is simply installed everywhere and good enough for my needs. (With some help like autojump for bash.)"
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699560002 {#4751
    date: 2023-11-09 21:00:02.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@multicorn@programming.dev"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4754 …}
  +nested: Doctrine\ORM\PersistentCollection {#4756 …}
  +votes: Doctrine\ORM\PersistentCollection {#4758 …}
  +reports: Doctrine\ORM\PersistentCollection {#4760 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4762 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4764 …}
  -id: 105258
  -bodyTs: "'autocomplet':12 'autojump':39 'awesom':5 'bash':21,41 'crazi':11 'enough':31 'everywher':28 'good':30 'help':37 'instal':27 'like':38 'lot':9 'most':22 'need':34 'peopl':15 'saw':7 'simpli':26 'stick':19 'stuff':13 'total':4 'use':16 'zsh':1"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506205"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560002 {#4752
    date: 2023-11-09 21:00:02.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
69 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
70 DENIED moderate
App\Entity\EntryComment {#4655
  +user: App\Entity\User {#4668 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1699654645 {#4650
    date: 2023-11-10 23:17:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4656 …}
  +nested: Doctrine\ORM\PersistentCollection {#4658 …}
  +votes: Doctrine\ORM\PersistentCollection {#4660 …}
  +reports: Doctrine\ORM\PersistentCollection {#4662 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
  -id: 105186
  -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5187427"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699558684 {#4651
    date: 2023-11-09 20:38:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
71 DENIED edit
App\Entity\EntryComment {#4655
  +user: App\Entity\User {#4668 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1699654645 {#4650
    date: 2023-11-10 23:17:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4656 …}
  +nested: Doctrine\ORM\PersistentCollection {#4658 …}
  +votes: Doctrine\ORM\PersistentCollection {#4660 …}
  +reports: Doctrine\ORM\PersistentCollection {#4662 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
  -id: 105186
  -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5187427"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699558684 {#4651
    date: 2023-11-09 20:38:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
72 DENIED moderate
App\Entity\EntryComment {#4655
  +user: App\Entity\User {#4668 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: null
  +root: null
  +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 6
  +score: 0
  +lastActive: DateTime @1699654645 {#4650
    date: 2023-11-10 23:17:25.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4656 …}
  +nested: Doctrine\ORM\PersistentCollection {#4658 …}
  +votes: Doctrine\ORM\PersistentCollection {#4660 …}
  +reports: Doctrine\ORM\PersistentCollection {#4662 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
  -id: 105186
  -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.world/comment/5187427"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699558684 {#4651
    date: 2023-11-09 20:38:04.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
73 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
74 DENIED moderate
App\Entity\EntryComment {#4732
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4655
    +user: App\Entity\User {#4668 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1699654645 {#4650
      date: 2023-11-10 23:17:25.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4656 …}
    +nested: Doctrine\ORM\PersistentCollection {#4658 …}
    +votes: Doctrine\ORM\PersistentCollection {#4660 …}
    +reports: Doctrine\ORM\PersistentCollection {#4662 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
    -id: 105186
    -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5187427"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699558684 {#4651
      date: 2023-11-09 20:38:04.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: """
    Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
    \n
    Any advice/guide how to change the color for ssh sessions?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699560179 {#4731
    date: 2023-11-09 21:02:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4738 …}
  +nested: Doctrine\ORM\PersistentCollection {#4740 …}
  +votes: Doctrine\ORM\PersistentCollection {#4742 …}
  +reports: Doctrine\ORM\PersistentCollection {#4745 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
  -id: 105267
  -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506280"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560179 {#4734
    date: 2023-11-09 21:02:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
75 DENIED edit
App\Entity\EntryComment {#4732
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4655
    +user: App\Entity\User {#4668 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1699654645 {#4650
      date: 2023-11-10 23:17:25.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4656 …}
    +nested: Doctrine\ORM\PersistentCollection {#4658 …}
    +votes: Doctrine\ORM\PersistentCollection {#4660 …}
    +reports: Doctrine\ORM\PersistentCollection {#4662 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
    -id: 105186
    -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5187427"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699558684 {#4651
      date: 2023-11-09 20:38:04.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: """
    Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
    \n
    Any advice/guide how to change the color for ssh sessions?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699560179 {#4731
    date: 2023-11-09 21:02:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4738 …}
  +nested: Doctrine\ORM\PersistentCollection {#4740 …}
  +votes: Doctrine\ORM\PersistentCollection {#4742 …}
  +reports: Doctrine\ORM\PersistentCollection {#4745 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
  -id: 105267
  -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506280"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560179 {#4734
    date: 2023-11-09 21:02:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
76 DENIED moderate
App\Entity\EntryComment {#4732
  +user: Proxies\__CG__\App\Entity\User {#1970 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4655
    +user: App\Entity\User {#4668 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: null
    +root: null
    +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
    +lang: "en"
    +isAdult: false
    +favouriteCount: 6
    +score: 0
    +lastActive: DateTime @1699654645 {#4650
      date: 2023-11-10 23:17:25.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4656 …}
    +nested: Doctrine\ORM\PersistentCollection {#4658 …}
    +votes: Doctrine\ORM\PersistentCollection {#4660 …}
    +reports: Doctrine\ORM\PersistentCollection {#4662 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
    -id: 105186
    -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.world/comment/5187427"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699558684 {#4651
      date: 2023-11-09 20:38:04.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: """
    Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
    \n
    Any advice/guide how to change the color for ssh sessions?
    """
  +lang: "en"
  +isAdult: false
  +favouriteCount: 2
  +score: 0
  +lastActive: DateTime @1699560179 {#4731
    date: 2023-11-09 21:02:59.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4738 …}
  +nested: Doctrine\ORM\PersistentCollection {#4740 …}
  +votes: Doctrine\ORM\PersistentCollection {#4742 …}
  +reports: Doctrine\ORM\PersistentCollection {#4745 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
  -id: 105267
  -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.zip/comment/4506280"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699560179 {#4734
    date: 2023-11-09 21:02:59.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
77 DENIED ROLE_USER
null
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"Symfony\Component\Security\Core\Authorization\Voter\RoleHierarchyVoter"
ACCESS DENIED
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
78 DENIED moderate
App\Entity\EntryComment {#4824
  +user: Proxies\__CG__\App\Entity\User {#4820 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4732
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4655
      +user: App\Entity\User {#4668 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1699654645 {#4650
        date: 2023-11-10 23:17:25.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4656 …}
      +nested: Doctrine\ORM\PersistentCollection {#4658 …}
      +votes: Doctrine\ORM\PersistentCollection {#4660 …}
      +reports: Doctrine\ORM\PersistentCollection {#4662 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
      -id: 105186
      -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5187427"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699558684 {#4651
        date: 2023-11-09 20:38:04.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4655}
    +body: """
      Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
      \n
      Any advice/guide how to change the color for ssh sessions?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1699560179 {#4731
      date: 2023-11-09 21:02:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@wmassingham@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4738 …}
    +nested: Doctrine\ORM\PersistentCollection {#4740 …}
    +votes: Doctrine\ORM\PersistentCollection {#4742 …}
    +reports: Doctrine\ORM\PersistentCollection {#4745 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
    -id: 105267
    -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4506280"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699560179 {#4734
      date: 2023-11-09 21:02:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: "Check for the ssh env vars. For example, I use `PS1=“${SSH_CONNECTION:+u@h:}W$”` to hide the hostname when not on SSH, you could do something similar with the control codes for color."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699578374 {#4825
    date: 2023-11-10 02:06:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4816 …}
  +nested: Doctrine\ORM\PersistentCollection {#4814 …}
  +votes: Doctrine\ORM\PersistentCollection {#4818 …}
  +reports: Doctrine\ORM\PersistentCollection {#4830 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4832 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4834 …}
  -id: 106121
  -bodyTs: "'check':1 'code':33 'color':35 'connect':13 'control':32 'could':26 'env':5 'exampl':8 'h':15 'hide':18 'hostnam':20 'ps1':11 'similar':29 'someth':28 'ssh':4,12,24 'u':14 'use':10 'var':6 'w':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5660440"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699578374 {#4828
    date: 2023-11-10 02:06:14.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
79 DENIED edit
App\Entity\EntryComment {#4824
  +user: Proxies\__CG__\App\Entity\User {#4820 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4732
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4655
      +user: App\Entity\User {#4668 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1699654645 {#4650
        date: 2023-11-10 23:17:25.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4656 …}
      +nested: Doctrine\ORM\PersistentCollection {#4658 …}
      +votes: Doctrine\ORM\PersistentCollection {#4660 …}
      +reports: Doctrine\ORM\PersistentCollection {#4662 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
      -id: 105186
      -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5187427"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699558684 {#4651
        date: 2023-11-09 20:38:04.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4655}
    +body: """
      Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
      \n
      Any advice/guide how to change the color for ssh sessions?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1699560179 {#4731
      date: 2023-11-09 21:02:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@wmassingham@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4738 …}
    +nested: Doctrine\ORM\PersistentCollection {#4740 …}
    +votes: Doctrine\ORM\PersistentCollection {#4742 …}
    +reports: Doctrine\ORM\PersistentCollection {#4745 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
    -id: 105267
    -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4506280"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699560179 {#4734
      date: 2023-11-09 21:02:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: "Check for the ssh env vars. For example, I use `PS1=“${SSH_CONNECTION:+u@h:}W$”` to hide the hostname when not on SSH, you could do something similar with the control codes for color."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699578374 {#4825
    date: 2023-11-10 02:06:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4816 …}
  +nested: Doctrine\ORM\PersistentCollection {#4814 …}
  +votes: Doctrine\ORM\PersistentCollection {#4818 …}
  +reports: Doctrine\ORM\PersistentCollection {#4830 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4832 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4834 …}
  -id: 106121
  -bodyTs: "'check':1 'code':33 'color':35 'connect':13 'control':32 'could':26 'env':5 'exampl':8 'h':15 'hide':18 'hostnam':20 'ps1':11 'similar':29 'someth':28 'ssh':4,12,24 'u':14 'use':10 'var':6 'w':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5660440"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699578374 {#4828
    date: 2023-11-10 02:06:14.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
80 DENIED moderate
App\Entity\EntryComment {#4824
  +user: Proxies\__CG__\App\Entity\User {#4820 …}
  +entry: App\Entity\Entry {#2419
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +magazine: App\Entity\Magazine {#265
      +icon: Proxies\__CG__\App\Entity\Image {#246 …}
      +name: "linux@lemmy.ml"
      +title: "linux"
      +description: """
        From Wikipedia, the free encyclopedia\n
        \n
        Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
        \n
        Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
        \n
        ### Rules\n
        \n
        - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
        - No misinformation\n
        - No NSFW content\n
        - No hate speech, bigotry, etc\n
        \n
        ### Related Communities\n
        \n
        - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
        - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
        - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
        - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
        \n
        Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
        """
      +rules: null
      +subscriptionsCount: 1
      +entryCount: 1406
      +entryCommentCount: 28632
      +postCount: 6
      +postCommentCount: 214
      +isAdult: false
      +customCss: null
      +lastActive: DateTime @1729583542 {#275
        date: 2024-10-22 09:52:22.0 +02:00
      }
      +markedForDeletionAt: null
      +tags: null
      +moderators: Doctrine\ORM\PersistentCollection {#237 …}
      +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
      +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
      +entries: Doctrine\ORM\PersistentCollection {#180 …}
      +posts: Doctrine\ORM\PersistentCollection {#138 …}
      +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
      +bans: Doctrine\ORM\PersistentCollection {#117 …}
      +reports: Doctrine\ORM\PersistentCollection {#103 …}
      +badges: Doctrine\ORM\PersistentCollection {#81 …}
      +logs: Doctrine\ORM\PersistentCollection {#71 …}
      +awards: Doctrine\ORM\PersistentCollection {#1346 …}
      +categories: Doctrine\ORM\PersistentCollection {#1823 …}
      -id: 73
      +apId: "linux@lemmy.ml"
      +apProfileId: "https://lemmy.ml/c/linux"
      +apPublicUrl: "https://lemmy.ml/c/linux"
      +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
      +apInboxUrl: "https://lemmy.ml/inbox"
      +apDomain: "lemmy.ml"
      +apPreferredUsername: "linux"
      +apDiscoverable: true
      +apManuallyApprovesFollowers: null
      +privateKey: null
      +publicKey: null
      +apFetchedAt: DateTime @1729583596 {#269
        date: 2024-10-22 09:53:16.0 +02:00
      }
      +apDeletedAt: null
      +apTimeoutAt: null
      +visibility: "visible             "
      +createdAt: DateTimeImmutable @1698929468 {#271
        date: 2023-11-02 13:51:08.0 +01:00
      }
    }
    +image: null
    +domain: Proxies\__CG__\App\Entity\Domain {#1915 …}
    +slug: "Custom-shell-prompt-tips-and-tricks"
    +title: "Custom shell prompt tips and tricks?"
    +url: null
    +body: """
      Recently I stumbled over an article, about how to customize your shell prompt. What really surprised me, is that it lacked one of the most basic tips I learned nearly 20 years back: Always display a timestamp in the prompt, to be able to check how long a process is running or when it ended. (Don’t need it daily, but every so often it saves my butt. ;-)) The other trick is to always have a colorful prompt, to easily discern where output from programs start/stop. In total my PS1 looks like this (with GIT status at the end): [\e[32m]\u[\e[m]@[\e[35m]\h[\e[m] [\e[36m]\A[\e[m] [\e[37m][[\e[m][\e[31m]\w[\e[m][\e[37m]][\e[m]$(__git_ps1 “(%s)”)$\n
      \n
      My question is, what customization, tips and tricks do you have for the shell prompt?
      """
    +type: "article"
    +lang: "en"
    +isOc: false
    +hasEmbed: false
    +commentCount: 19
    +favouriteCount: 27
    +score: 0
    +isAdult: false
    +sticky: false
    +lastActive: DateTime @1700431405 {#2414
      date: 2023-11-19 23:03:25.0 +01:00
    }
    +ip: null
    +adaAmount: 0
    +tags: null
    +mentions: null
    +comments: Doctrine\ORM\PersistentCollection {#1884 …}
    +votes: Doctrine\ORM\PersistentCollection {#1973 …}
    +reports: Doctrine\ORM\PersistentCollection {#1959 …}
    +favourites: Doctrine\ORM\PersistentCollection {#1927 …}
    +notifications: Doctrine\ORM\PersistentCollection {#2442 …}
    +badges: Doctrine\ORM\PersistentCollection {#2440 …}
    +children: []
    -id: 11536
    -titleTs: "'custom':1 'prompt':3 'shell':2 'tip':4 'trick':6"
    -bodyTs: "'20':31 '31m':120 '32m':101 '35m':106 '36m':111 '37m':116,125 'abl':43 'alway':34,74 'articl':6 'back':33 'basic':26 'butt':68 'check':45 'color':77 'custom':10,135 'daili':60 'discern':81 'display':35 'e':100,103,105,108,110,113,115,117,119,122,124,126 'easili':80 'end':55,99 'everi':62 'git':95,128 'h':107 'lack':21 'learn':29 'like':92 'long':47 'look':91 'm':104,109,114,118,123,127 'near':30 'need':58 'often':64 'one':22 'output':83 'process':49 'program':85 'prompt':13,40,78,145 'ps1':90,129 'question':132 'realli':15 'recent':1 'run':51 'save':66 'shell':12,144 'start/stop':86 'status':96 'stumbl':3 'surpris':16 'timestamp':37 'tip':27,136 'total':88 'trick':71,138 'u':102 'w':121 'year':32"
    +cross: false
    +upVotes: 0
    +downVotes: 0
    +ranking: 1699644087
    +visibility: "visible             "
    +apId: "https://lemmy.zip/post/5328558"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699557687 {#1793
      date: 2023-11-09 20:21:27.0 +01:00
    }
  }
  +magazine: App\Entity\Magazine {#265}
  +image: null
  +parent: App\Entity\EntryComment {#4732
    +user: Proxies\__CG__\App\Entity\User {#1970 …}
    +entry: App\Entity\Entry {#2419}
    +magazine: App\Entity\Magazine {#265}
    +image: null
    +parent: App\Entity\EntryComment {#4655
      +user: App\Entity\User {#4668 …}
      +entry: App\Entity\Entry {#2419}
      +magazine: App\Entity\Magazine {#265}
      +image: null
      +parent: null
      +root: null
      +body: "I make it green for an ssh session, and red when I’m root. That’s it, nothing fancy."
      +lang: "en"
      +isAdult: false
      +favouriteCount: 6
      +score: 0
      +lastActive: DateTime @1699654645 {#4650
        date: 2023-11-10 23:17:25.0 +01:00
      }
      +ip: null
      +tags: null
      +mentions: [
        "@wolf@lemmy.zip"
      ]
      +children: Doctrine\ORM\PersistentCollection {#4656 …}
      +nested: Doctrine\ORM\PersistentCollection {#4658 …}
      +votes: Doctrine\ORM\PersistentCollection {#4660 …}
      +reports: Doctrine\ORM\PersistentCollection {#4662 …}
      +favourites: Doctrine\ORM\PersistentCollection {#4664 …}
      +notifications: Doctrine\ORM\PersistentCollection {#4666 …}
      -id: 105186
      -bodyTs: "'fanci':19 'green':4 'm':13 'make':2 'noth':18 'red':10 'root':14 'session':8 'ssh':7"
      +ranking: 0
      +commentCount: 0
      +upVotes: 0
      +downVotes: 0
      +visibility: "visible             "
      +apId: "https://lemmy.world/comment/5187427"
      +editedAt: null
      +createdAt: DateTimeImmutable @1699558684 {#4651
        date: 2023-11-09 20:38:04.0 +01:00
      }
    }
    +root: App\Entity\EntryComment {#4655}
    +body: """
      Damn it! That is such an obvious great idea, I feel like an idiot! Thank you very much! :-)\n
      \n
      Any advice/guide how to change the color for ssh sessions?
      """
    +lang: "en"
    +isAdult: false
    +favouriteCount: 2
    +score: 0
    +lastActive: DateTime @1699560179 {#4731
      date: 2023-11-09 21:02:59.0 +01:00
    }
    +ip: null
    +tags: null
    +mentions: [
      "@wolf@lemmy.zip"
      "@wmassingham@lemmy.world"
    ]
    +children: Doctrine\ORM\PersistentCollection {#4738 …}
    +nested: Doctrine\ORM\PersistentCollection {#4740 …}
    +votes: Doctrine\ORM\PersistentCollection {#4742 …}
    +reports: Doctrine\ORM\PersistentCollection {#4745 …}
    +favourites: Doctrine\ORM\PersistentCollection {#4747 …}
    +notifications: Doctrine\ORM\PersistentCollection {#4749 …}
    -id: 105267
    -bodyTs: "'advice/guide':20 'chang':23 'color':25 'damn':1 'feel':11 'great':8 'idea':9 'idiot':14 'like':12 'much':18 'obvious':7 'session':28 'ssh':27 'thank':15"
    +ranking: 0
    +commentCount: 0
    +upVotes: 0
    +downVotes: 0
    +visibility: "visible             "
    +apId: "https://lemmy.zip/comment/4506280"
    +editedAt: null
    +createdAt: DateTimeImmutable @1699560179 {#4734
      date: 2023-11-09 21:02:59.0 +01:00
    }
  }
  +root: App\Entity\EntryComment {#4655}
  +body: "Check for the ssh env vars. For example, I use `PS1=“${SSH_CONNECTION:+u@h:}W$”` to hide the hostname when not on SSH, you could do something similar with the control codes for color."
  +lang: "en"
  +isAdult: false
  +favouriteCount: 3
  +score: 0
  +lastActive: DateTime @1699578374 {#4825
    date: 2023-11-10 02:06:14.0 +01:00
  }
  +ip: null
  +tags: null
  +mentions: [
    "@wolf@lemmy.zip"
    "@wmassingham@lemmy.world"
  ]
  +children: Doctrine\ORM\PersistentCollection {#4816 …}
  +nested: Doctrine\ORM\PersistentCollection {#4814 …}
  +votes: Doctrine\ORM\PersistentCollection {#4818 …}
  +reports: Doctrine\ORM\PersistentCollection {#4830 …}
  +favourites: Doctrine\ORM\PersistentCollection {#4832 …}
  +notifications: Doctrine\ORM\PersistentCollection {#4834 …}
  -id: 106121
  -bodyTs: "'check':1 'code':33 'color':35 'connect':13 'control':32 'could':26 'env':5 'exampl':8 'h':15 'hide':18 'hostnam':20 'ps1':11 'similar':29 'someth':28 'ssh':4,12,24 'u':14 'use':10 'var':6 'w':16"
  +ranking: 0
  +commentCount: 0
  +upVotes: 0
  +downVotes: 0
  +visibility: "visible             "
  +apId: "https://lemmy.ml/comment/5660440"
  +editedAt: null
  +createdAt: DateTimeImmutable @1699578374 {#4828
    date: 2023-11-10 02:06:14.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS DENIED
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details
81 DENIED edit
App\Entity\Magazine {#265
  +icon: Proxies\__CG__\App\Entity\Image {#246 …}
  +name: "linux@lemmy.ml"
  +title: "linux"
  +description: """
    From Wikipedia, the free encyclopedia\n
    \n
    Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).\n
    \n
    Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.\n
    \n
    ### Rules\n
    \n
    - Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.\n
    - No misinformation\n
    - No NSFW content\n
    - No hate speech, bigotry, etc\n
    \n
    ### Related Communities\n
    \n
    - [!opensource@lemmy.ml](https://lemmy.ml/c/opensource)\n
    - [!libre_culture@lemmy.ml](https://lemmy.ml/c/libre_culture)\n
    - [!technology@lemmy.ml](https://lemmy.ml/c/technology)\n
    - [!libre_hardware@lemmy.ml](https://lemmy.ml/c/libre_hardware)\n
    \n
    Community icon by [Alpár-Etele Méder](https://www.iconfinder.com/pocike), licensed under [CC BY 3.0](https://creativecommons.org/licenses/by/3.0/)
    """
  +rules: null
  +subscriptionsCount: 1
  +entryCount: 1406
  +entryCommentCount: 28632
  +postCount: 6
  +postCommentCount: 214
  +isAdult: false
  +customCss: null
  +lastActive: DateTime @1729583542 {#275
    date: 2024-10-22 09:52:22.0 +02:00
  }
  +markedForDeletionAt: null
  +tags: null
  +moderators: Doctrine\ORM\PersistentCollection {#237 …}
  +ownershipRequests: Doctrine\ORM\PersistentCollection {#233 …}
  +moderatorRequests: Doctrine\ORM\PersistentCollection {#222 …}
  +entries: Doctrine\ORM\PersistentCollection {#180 …}
  +posts: Doctrine\ORM\PersistentCollection {#138 …}
  +subscriptions: Doctrine\ORM\PersistentCollection {#200 …}
  +bans: Doctrine\ORM\PersistentCollection {#117 …}
  +reports: Doctrine\ORM\PersistentCollection {#103 …}
  +badges: Doctrine\ORM\PersistentCollection {#81 …}
  +logs: Doctrine\ORM\PersistentCollection {#71 …}
  +awards: Doctrine\ORM\PersistentCollection {#1346 …}
  +categories: Doctrine\ORM\PersistentCollection {#1823 …}
  -id: 73
  +apId: "linux@lemmy.ml"
  +apProfileId: "https://lemmy.ml/c/linux"
  +apPublicUrl: "https://lemmy.ml/c/linux"
  +apFollowersUrl: "https://lemmy.ml/c/linux/followers"
  +apInboxUrl: "https://lemmy.ml/inbox"
  +apDomain: "lemmy.ml"
  +apPreferredUsername: "linux"
  +apDiscoverable: true
  +apManuallyApprovesFollowers: null
  +privateKey: null
  +publicKey: null
  +apFetchedAt: DateTime @1729583596 {#269
    date: 2024-10-22 09:53:16.0 +02:00
  }
  +apDeletedAt: null
  +apTimeoutAt: null
  +visibility: "visible             "
  +createdAt: DateTimeImmutable @1698929468 {#271
    date: 2023-11-02 13:51:08.0 +01:00
  }
}
"Scheb\TwoFactorBundle\Security\Authorization\Voter\TwoFactorInProgressVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\EntryVoter"
ACCESS ABSTAIN
"App\Security\Voter\MagazineVoter"
ACCESS DENIED
"App\Security\Voter\MessageThreadVoter"
ACCESS ABSTAIN
"App\Security\Voter\MessageVoter"
ACCESS ABSTAIN
"App\Security\Voter\NotificationVoter"
ACCESS ABSTAIN
"App\Security\Voter\OAuth2UserConsentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostCommentVoter"
ACCESS ABSTAIN
"App\Security\Voter\PostVoter"
ACCESS ABSTAIN
"App\Security\Voter\UserVoter"
ACCESS ABSTAIN
Show voter details