bash/.bashrc.d/90-aliases.bash (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 |
alias o="xdg-open" alias gc="git commit -v -S" alias gst="git status --short" alias ga="git add" alias gd="git diff --minimal" alias gl="git log --oneline --decorate --graph" alias vim="nvim" alias k="kubectl" nvmon() { source ~/.nvm/nvm.sh } envac() { source .env/bin/activate } vpn() { ~/bin/vpnon.sh } dt() { time.sh -n } ggp() { [[ "$1" == "-f" ]] && { git push "$(git remote show)" -f "$(git branch --show-current)" } git push "$(git remote show)" "$(git branch --show-current)" } gpl() { git pull -r "$(git remote show)" "$(git branch --show-current)" } gpm() { git pull -r origin master } gco() { [[ "$1" == "" ]] && return 1 git rev-parse --verify "$1" &> /dev/null if [ $? -eq 0 ]; then git checkout "$1" else git checkout -b "$1" fi } ls() { case "$OSTYPE" in "linux"*) /bin/ls "$@" ;; "darwin"*) /bin/ls -G "$@" ;; *"bsd"*) colorls -G "$@" ;; esac } m() { case "$OSTYPE" in "darwin"*) s-nail "$@" ;; *"bsd"*) nail "$@" ;; esac } |