Last active
January 5, 2017 05:34
-
-
Save snambi/c0d00357adea999424114b7f4c6f2b97 to your computer and use it in GitHub Desktop.
Setup BASH Prompt and aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -o vi | |
#stty erase ^H | |
alias xb="xterm -fg lightgreen -bg black -sl 5000 -sb -T dark &" | |
alias xg="xterm -fg lightgreen -bg grey20 -sl 5000 -sb -T dark &" | |
alias xa="xterm -fg black -bg white -sl 5000 -sb -T white &" | |
alias xc='xterm -fg black -bg bisque -sl 5000 -sb -T white &' | |
alias function="typeset -f" | |
#alias ls="ls -G" | |
alias ll="ls -l" | |
alias l="ls -l" | |
alias rm="rm -i" | |
export HOSTNAME_COLOR='31m' | |
export DIR_COLOR='38m' | |
export HISTSIZE=4000 | |
# for colors http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
export COLOR_BLACK='30m' | |
export COLOR_LIGHTRED='31m' | |
export COLOR_GREEN='32m' | |
export COLOR_YELLOW='33m' | |
export COLOR_DARKBLUE='34m' | |
export COLOR_PURPLE='35m' | |
export COLOR_CYAN='36m' | |
export PS_LIGHT='\[\e]0;\w\a\]\[\e[${COLOR_GREEN}\]\h:\[\e[${COLOR_YELLOW}\]\u:\[\e[${COLOR_CYAN}\]$PWD>\[\e[0m\]\n\$' | |
export PS_DARK='\[\e]0;\w\a\]\[\e[${COLOR_LIGHTRED}\]\h:\[\e[${COLOR_PURPLE}\]\u:\[\e[${COLOR_DARKBLUE}\]$PWD>\[\e[0m\]\n\$' | |
export PS1=$PS_LIGHT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment