1 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
2 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
3 |
DENIED
|
edit
|
Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
4 |
DENIED
|
moderate
|
Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593 …2}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
} |
|
Show voter details
|
5 |
DENIED
|
ROLE_USER
|
null |
|
Show voter details
|
6 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
} |
|
Show voter details
|
7 |
DENIED
|
edit
|
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
} |
|
Show voter details
|
8 |
DENIED
|
moderate
|
App\Entity\EntryComment {#1690
+user: App\Entity\User {#263 …}
+entry: Proxies\__CG__\App\Entity\Entry {#1593
+user: Proxies\__CG__\App\Entity\User {#1707 …}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+image: null
+domain: Proxies\__CG__\App\Entity\Domain {#1596 …}
+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 {#1731
date: 2023-11-19 23:03:25.0 +01:00
}
+ip: null
+adaAmount: 0
+tags: null
+mentions: null
+comments: Doctrine\ORM\PersistentCollection {#1619 …}
+votes: Doctrine\ORM\PersistentCollection {#1701 …}
+reports: Doctrine\ORM\PersistentCollection {#1680 …}
+favourites: Doctrine\ORM\PersistentCollection {#2454 …}
+notifications: Doctrine\ORM\PersistentCollection {#2411 …}
+badges: Doctrine\ORM\PersistentCollection {#2370 …}
+children: [
App\Entity\EntryComment {#1690}
]
-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 {#1695
date: 2023-11-09 20:21:27.0 +01:00
}
+__isInitialized__: true
…2
}
+magazine: Proxies\__CG__\App\Entity\Magazine {#1581 …}
+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 {#1437
date: 2023-11-10 17:27:37.0 +01:00
}
+ip: null
+tags: null
+mentions: [
"@wolf@lemmy.zip"
]
+children: Doctrine\ORM\PersistentCollection {#1584 …}
+nested: Doctrine\ORM\PersistentCollection {#1580 …}
+votes: Doctrine\ORM\PersistentCollection {#1583 …}
+reports: Doctrine\ORM\PersistentCollection {#1582 …}
+favourites: Doctrine\ORM\PersistentCollection {#1575 …}
+notifications: Doctrine\ORM\PersistentCollection {#1668 …}
-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 {#1434
date: 2023-11-09 20:55:08.0 +01:00
}
+"title": 105241
} |
|
Show voter details
|
9 |
DENIED
|
ROLE_ADMIN
|
null |
|
Show voter details
|
10 |
DENIED
|
ROLE_MODERATOR
|
null |
|
Show voter details
|