Skip to content

Instantly share code, notes, and snippets.

@zsuiram
Last active June 25, 2019 17:00
Show Gist options
  • Save zsuiram/7185971 to your computer and use it in GitHub Desktop.
Save zsuiram/7185971 to your computer and use it in GitHub Desktop.
alias
# Generic
export PS1="\[\033[38;5;11m\]\u\[$(tput sgr0)\]\[\033[38;5;14m\]@\[$(tput sgr0)\]\[\033[38;5;9m\]\w\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput bold)\]\[$(tput sgr0)\]\[\033[38;5;14m\]>\[$(tput sgr0)\]\[$(tput sgr0)\]\[\033[38;5;15m\] \[$(tput sgr0)\]"
alias ..='cd ..'
alias ...='cd ../../'
alias ....='cd ../../../'
export LS_OPTIONS='--color=auto'
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias vi='vim'
alias ..='cd ..'
alias ...='cd ../../'
alias ll='ls -lh $LS_OPTIONS'
alias la='ls -lha $LS_OPTIONS'
alias md='mkdir -pv'
alias c='clear'
alias df="df -H"
alias du="du -ch"
function fzip {
zip -r -v $1.zip $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment