Page 1 of 1

Suggestion for bash prompt

Posted: 5. Mar 2018, 21:58
by GotuX
Well..I think this is one of the best distribution I tried.
But the bash prompt is one of the very little cosmetic thing that I think needs to improve.
Moro colorized, ls color enabled, grep color enabled etc.
This is my bashrc

Code: Select all

export PS1="\[$(tput bold)\]\[$(tput setaf 4)\][\[$(tput setaf 2)\]\u\[$(tput setaf 4)\]@\[$(tput setaf 2)\]\h \[$(tput setaf 2)\]\W\[$(tput setaf 4)\]]\\$ \[$(tput sgr0)\]"
export PAGER=/usr/bin/most
export EDITOR=/usr/bin/vim
alias less='less --RAW-CONTROL-CHARS'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias pki='sudo slapt-get --install'
alias pks='sudo slapt-get --search'
alias pkr='sudo slapt-get --remove'
alias pka='sudo slapt-get -u && sudo slapt-get --upgrade'
alias gslapt='sudo gslapt'
if [ -f ~/.bash_aliases ]; then
	. ~/.bash_aliases
Hope this can be helpful for someone.

Re: Suggestion for bash prompt

Posted: 13. Mar 2018, 08:33
by globetrotterdk
Thank you for sharing.