Skip to content

Instantly share code, notes, and snippets.

@MXMLN-sec
Created February 11, 2017 18:28
Show Gist options
  • Save MXMLN-sec/ade998a50576895a3ca31649dded12d6 to your computer and use it in GitHub Desktop.
Save MXMLN-sec/ade998a50576895a3ca31649dded12d6 to your computer and use it in GitHub Desktop.
Bash Alias
alias l.='ls -d .* --color=auto'
alias ls='ls --color=auto'
alias la='ls -lah --color=auto'
alias ll='ls -lh --color=auto'
alias grep='grep --color=auto'
alias vi='vim'
alias myip='curl -s v4.icanhazip.com; curl -s icanhazip.com'
alias dow='cd ~/Downloads'
alias doc='cd ~/Documents'
### PS1 ###
if [ "`id -u`" -eq 0 ]; then
PS1='\[\033[1;31m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;36m\]\w\[\033[1;37m\]\$ '
else
PS1='\[\033[1;32m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;36m\]\w\[\033[1;37m\]\$ '
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment