Skip to content

Instantly share code, notes, and snippets.

@cypai
Last active December 30, 2016 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cypai/d74f5de78fa13f6e20c19fc502691c85 to your computer and use it in GitHub Desktop.
Save cypai/d74f5de78fa13f6e20c19fc502691c85 to your computer and use it in GitHub Desktop.
.bashrc additions
ulimit -v 4000000
GIT_PROMPT_ONLY_IN_REPO=1
source ~/.bash-git-prompt/gitprompt.sh
alias crontab="crontab -i"
alias aka="grep ^alias ~/.bashrc"
alias down="cd ~/Downloads"
alias doc="cd ~/Documents"
alias ls="ls --color=auto"
alias cgit="cd ~/cgit"
alias work="cd ~/work"
alias ppas="grep -r --include '*.list' '^deb ' /etc/apt/ | sed -re 's/^\/etc\/apt\/sources\.list((\.d\/)?|(:)?)//' -e 's/(.*\.list):/\[\1\] /' -e 's/deb http:\/\/ppa.launchpad.net\/(.*?)\/ubuntu .*/ppa:\1/'"
goto() {
cd ~/cgit/$1
}
_goto() {
local cur=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(compgen -W "$(ls ~/cgit/)" -- $cur) )
}
complete -F _goto goto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment