securitybreach 11,431 Posted August 2, 2012 Share Posted August 2, 2012 Especailly since I don't make any Rofl Link to post Share on other sites
sunrat 2,316 Posted August 3, 2012 Share Posted August 3, 2012 Especailly since I don't make any Me neither. It's easy on Debian. (sunrat dodges hurled stones). ps. I love the irony of your incorect speling. Link to post Share on other sites
goretsky 1,174 Posted August 3, 2012 Share Posted August 3, 2012 Hello, A bit dated, but this decade-old thread on Slashdot might be of interest: What Does Your Command Prompt Look Like? Regards, Aryeh Goretsky 1 Link to post Share on other sites
sunrat 2,316 Posted August 3, 2012 Share Posted August 3, 2012 Good one Aryeh. There be some nasty but funny posts there, eg.: alias rm="echo I\\'m sorry Dave, I\\'m afraid I can\\'t do that" 1 Link to post Share on other sites
V.T. Eric Layton 6,697 Posted August 3, 2012 Author Share Posted August 3, 2012 Wow! 2001. I hadn't even heard of Linux then. Link to post Share on other sites
crp 823 Posted August 3, 2012 Share Posted August 3, 2012 Is that the page that had the infamous Snoopy prompt? It left the user with only 1 viewable command line and took up all the memory allocated to the environment space. Link to post Share on other sites
wa4chq 416 Posted July 23, 2019 Share Posted July 23, 2019 Reviving the dead....lol Here's my latest......using ZSH.....I'm also including todays weather. 2 Link to post Share on other sites
saturnian 657 Posted July 23, 2019 Share Posted July 23, 2019 Wow! I like short and simple for my bash prompts: user1[~]$ PS1='\[\e[1;32m\]\u[\w]\\$ \[\e[0m\]' 2 Link to post Share on other sites
V.T. Eric Layton 6,697 Posted July 23, 2019 Author Share Posted July 23, 2019 Hmm... that is short and simple. I'll bet you're a vanilla ice cream type, huh? 1 Link to post Share on other sites
wa4chq 416 Posted July 23, 2019 Share Posted July 23, 2019 (edited) lol....the screenshot I posted shows the whole screen including my prompt.....the prompt I'm using is just a single line! lol I included the local weather out of kindness...lol Edited July 23, 2019 by wa4chq Link to post Share on other sites
saturnian 657 Posted July 23, 2019 Share Posted July 23, 2019 (edited) Hmm... that is short and simple. I'll bet you're a vanilla ice cream type, huh? Ha-ha, I don't know. Oh, here's the whole window with my neofetch: Edited July 23, 2019 by saturnian 1 Link to post Share on other sites
securitybreach 11,431 Posted July 23, 2019 Share Posted July 23, 2019 This is from my work laptop: 3 1 Link to post Share on other sites
wa4chq 416 Posted July 24, 2019 Share Posted July 24, 2019 (edited) PS1="[%w] $fg[green]%n %~ $fg[white]--> " Edited July 24, 2019 by wa4chq Link to post Share on other sites
saturnian 657 Posted July 25, 2019 Share Posted July 25, 2019 PS1="[%w] $fg[green]%n %~ $fg[white]--> " Does this work only for ZSH? I tried it here (using BASH) and it gives me this prompt, all in white: [%w] [green]%n %~ [white]--> 1 Link to post Share on other sites
securitybreach 11,431 Posted July 25, 2019 Share Posted July 25, 2019 Main home rig prompt: 1 Link to post Share on other sites
securitybreach 11,431 Posted July 25, 2019 Share Posted July 25, 2019 PS1="[%w] $fg[green]%n %~ $fg[white]--> " Does this work only for ZSH? I tried it here (using BASH) and it gives me this prompt, all in white: [%w] [green]%n %~ [white]--> Zsh does not use that syntax in it's config. Here is my ~/.zshrc: # Path to your oh-my-zsh installation. ZSH=/usr/share/oh-my-zsh/ # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="evan" # Uncomment the following line to disable bi-weekly auto-update checks. DISABLE_AUTO_UPDATE="true" # Uncomment the following line to enable command auto-correction. ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. COMPLETION_WAITING_DOTS="true" plugins=(git) # User configuration export PATH=$HOME/bin:/usr/local/bin:$PATH ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache if [[ ! -d $ZSH_CACHE_DIR ]]; then mkdir $ZSH_CACHE_DIR fi source $ZSH/oh-my-zsh.sh #Syntax highlighting source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh #Aliases alias vtop='vtop --theme dark' alias grep='grep --color=auto' alias rb='dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot' alias pa='yay -Syu' alias di='di -H -x tmpfs,run' alias tor='chromium --proxy-server="socks://localhost:9050"' alias myip='dig +short myip.opendns.com @resolver1.opendns.com' alias mixer='pulsemixer' alias mail='neomutt' alias mkdir='mkdir -pv' source /usr/share/doc/pkgfile/command-not-found.zsh export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" export GEM_HOME=$(ruby -e 'print Gem.user_dir') source ~/.rvm/scripts/rvm transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } 1 Link to post Share on other sites
wa4chq 416 Posted July 25, 2019 Share Posted July 25, 2019 PS1="[%w] $fg[green]%n %~ $fg[white]--> " Does this work only for ZSH? I tried it here (using BASH) and it gives me this prompt, all in white: [%w] [green]%n %~ [white]--> I believe so, only for zsh. If I try using bash prompts with zsh, they don't work. There are plenty of sites for pimping bash. Here's one...https://www.maketecheasier.com/customise-bash-prompt-linux/ 1 1 Link to post Share on other sites
wa4chq 416 Posted July 25, 2019 Share Posted July 25, 2019 (edited) PS1="[%w] $fg[green]%n %~ $fg[white]--> " Does this work only for ZSH? I tried it here (using BASH) and it gives me this prompt, all in white: [%w] [green]%n %~ [white]--> Zsh does not use that syntax in it's config. Here is my ~/.zshrc: # Path to your oh-my-zsh installation. ZSH=/usr/share/oh-my-zsh/ # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="evan" # Uncomment the following line to disable bi-weekly auto-update checks. DISABLE_AUTO_UPDATE="true" # Uncomment the following line to enable command auto-correction. ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. COMPLETION_WAITING_DOTS="true" plugins=(git) # User configuration export PATH=$HOME/bin:/usr/local/bin:$PATH ZSH_CACHE_DIR=$HOME/.oh-my-zsh-cache if [[ ! -d $ZSH_CACHE_DIR ]]; then mkdir $ZSH_CACHE_DIR fi source $ZSH/oh-my-zsh.sh #Syntax highlighting source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh #Aliases alias vtop='vtop --theme dark' alias grep='grep --color=auto' alias rb='dbus-send --system --print-reply --dest="org.freedesktop.Hal" /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.Reboot' alias pa='yay -Syu' alias di='di -H -x tmpfs,run' alias tor='chromium --proxy-server="socks://localhost:9050"' alias myip='dig +short myip.opendns.com @resolver1.opendns.com' alias mixer='pulsemixer' alias mail='neomutt' alias mkdir='mkdir -pv' source /usr/share/doc/pkgfile/command-not-found.zsh export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" export GEM_HOME=$(ruby -e 'print Gem.user_dir') source ~/.rvm/scripts/rvm transfer() { if [ $# -eq 0 ]; then echo -e "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; } Nice. I use to use "oh-my-zsh"....pretty slick....lot's of cool prompts to choose from. vtop.....looks interesting......gotta look into that one. well, I checked into vtop for MX-18 and Slackware....no dice. Guess I'll settle for nmon or htop. Edited July 25, 2019 by wa4chq 2 Link to post Share on other sites
abarbarian 3,455 Posted May 15, 2020 Share Posted May 15, 2020 http://bashrcgenerator.com/ I used the above site to create a new bash prompt. Blue for me as a user and red as root. Link to post Share on other sites
securitybreach 11,431 Posted May 15, 2020 Share Posted May 15, 2020 Nice but why xterm? It's the least customizable prompt there is. Plus you should switch from bash to zsh, it will make your terminal usage 110% better. Link to post Share on other sites
abarbarian 3,455 Posted May 15, 2020 Share Posted May 15, 2020 2 hours ago, securitybreach said: Nice but why xterm? It's the least customizable prompt there is. Plus you should switch from bash to zsh, it will make your terminal usage 110% better. Hmmm I only use the cli a little. This is probably why I have never changed, from the wiki, Quote Although Zsh is usable out of the box, it is almost certainly not set up the way most users would like to use it. But due to the sheer amount of customization available in Zsh, configuring Zsh can be a daunting and time-consuming experience. An I have looked at other terminals but none of them seemed to offer much extra from xterm. Or the benefits were not large enough for me to do loads of reading up on. I did trial a really fancy one ages ago, I liked the E17 one but it borked on an update, a lot of E17 stuff did back then. An I did try out Fish and ran it for a while. Like I said I only play with the cli now and then, maybe I'll dive in and change at some point but then again ---- Link to post Share on other sites
securitybreach 11,431 Posted May 15, 2020 Share Posted May 15, 2020 Zsh has lots of benefits including tab completion of commands (with options) and filenames as shown by this quick video I recorded: https://www.youtube.com/watch?v=zt7PNAr9vwI Oh-my-zsh is a framework for zsh which provided a lot of prebuilt themes as shown here: https://github.com/ohmyzsh/ohmyzsh/wiki/themes and a bunch of plugins available as well https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins Just install oh-my-zsh-git from AUR (or via git) and type zsh in a terminal to start zsh and if you want it as your default for terminals, follow this https://wiki.archlinux.org/index.php/Command-line_shell#Changing_your_default_shell Quote Advantages that I appreciate: Much easier prompt definitions. Particularly dynamic/multine prompts. Right Prompt? Yes, thank you! Awesome set (more comprehensive than BASH) of Auto Completions are much faster and smarter (e.g. case insensitive completion, smart defaults) Path Expansion is pure win. (cd /v/w [tab] == cd /var/www) Path Replacement is pretty cool also. Spelling Correction (setopt correct) is mighty awesome for me. oh-my-zsh - Large, community driven framework for all sorts of bells and whistles. The Zsh Line Editor ... just google it Key Bindings? Yes, thank you! Globbing is awesome (Extended, inline, just wow!) https://www.quora.com/What-are-the-advantages-and-disadvantages-of-using-zsh-instead-of-bash-or-other-shells?share=1 1 Link to post Share on other sites
saturnian 657 Posted May 16, 2020 Share Posted May 16, 2020 14 hours ago, abarbarian said: http://bashrcgenerator.com/ I used the above site to create a new bash prompt. Blue for me as a user and red as root. Nice site! Thanks! 13 hours ago, securitybreach said: Nice but why xterm? It's the least customizable prompt there is. Plus you should switch from bash to zsh, it will make your terminal usage 110% better. I still haven't bothered to switch from bash to zsh! I think I've done a couple of installations now where the distro's default was zsh and I simply switched it to bash. zsh looks cool, maybe I'll try it out. As for xterm, I rarely use that but I'm not very particular about terminal emulators -- often, I just stick with the default. 1 Link to post Share on other sites
abarbarian 3,455 Posted May 16, 2020 Share Posted May 16, 2020 15 hours ago, securitybreach said: I recorded: https://www.youtube.com/watch?v=zt7PNAr9vwI Neat, that looks pretty interesting. I have had a good read up from your links and all over the net. I'll let teh info settle in the grey cell for a while. Interesting. 1 Link to post Share on other sites
abarbarian 3,455 Posted May 27, 2020 Share Posted May 27, 2020 Bash $PS1 Generator2.0 Just another easy to use prompt modifier. Link to post Share on other sites
abarbarian 3,455 Posted May 28, 2020 Share Posted May 28, 2020 Latest addition to me bash prompt, This is the entry I put in my ./bashrc. Do " source ~/.bashrc " to make the change permanent. PROMPT_COMMAND="echo -n $(tput bold) $(tput setaf 6)Put brain in gear befor pressing enter" #unset PROMPT_COMMAND #use this to go back to normal When starting out you can use the command in a terminal and fiddle about with it till you get it right with no damage done as it goes away when you close the terminal. Took me quite some time before I could get colour and bold together. I tried loads of different combinations and eventually found the answer tucked away on some obscure site whose link I have misplaced. I was originally motivated to pursue this time waster by this site, https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html Next timewaster is to put the warning in red and blinking in my root prompt. 1 1 Link to post Share on other sites
securitybreach 11,431 Posted May 28, 2020 Share Posted May 28, 2020 1 hour ago, abarbarian said: Latest addition to me bash prompt, This is the entry I put in my ./bashrc. Do " source ~/.bashrc " to make the change permanent. PROMPT_COMMAND="echo -n $(tput bold) $(tput setaf 6)Put brain in gear befor pressing enter" #unset PROMPT_COMMAND #use this to go back to normal When starting out you can use the command in a terminal and fiddle about with it till you get it right with no damage done as it goes away when you close the terminal. Took me quite some time before I could get colour and bold together. I tried loads of different combinations and eventually found the answer tucked away on some obscure site whose link I have misplaced. I was originally motivated to pursue this time waster by this site, https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x264.html Next timewaster is to put the warning in red and blinking in my root prompt. So much easier to do the same thing with Oh-My-Zsh Link to post Share on other sites
abarbarian 3,455 Posted February 9 Share Posted February 9 Original boring xterm with neofetch, Several hours later after serious searching on the net, Amazing what innovation a small virus can stimulate. 2 1 Link to post Share on other sites
securitybreach 11,431 Posted February 9 Share Posted February 9 Looks great Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now