Suggestion for bash prompt

If you have any suggestions or ideas about improving Salix, here's the place to post them.
Post Reply
GotuX
Posts: 4
Joined: 5. Mar 2018, 17:54

Suggestion for bash prompt

Post by GotuX » 5. Mar 2018, 21:58

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
fi
Hope this can be helpful for someone.
byeeee

User avatar
globetrotterdk
Posts: 427
Joined: 26. Oct 2010, 13:57
Location: Copenhagen, Denmark

Re: Suggestion for bash prompt

Post by globetrotterdk » 13. Mar 2018, 08:33

Thank you for sharing.
Military justice is to justice what military music is to music. - Groucho Marx

Post Reply