X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/f6272d88eae76c8553f237f3f318c4a97997f262..fa25023586cb94a1abf4fd3ff95ebe7c3c8ead09:/zsh/modules/aliases.zsh diff --git a/zsh/modules/aliases.zsh b/zsh/modules/aliases.zsh new file mode 100644 index 0000000..2db24d9 --- /dev/null +++ b/zsh/modules/aliases.zsh @@ -0,0 +1,39 @@ +# File operations +alias cp="cp -i" +alias mv="mv -i" +alias rm="rm -i" +alias ls="ls -FG" + +# Lazy rgs +alias rgjs="rg -g '*.js' -g '*.svelte' -g '*.vue'" +alias rgrb="rg -g '*.rb'" +alias rgcss="rg -g '*.css'" + +# tmux +alias ta="tmux attach -t" +alias tn="tmux new -s" + +# Simple python server +alias spawn-server="python -m SimpleHTTPServer" + +# Git aliases +alias g='git' +alias gst="git status" +alias gss="gst --short" +alias gL="git log --graph --decorate" +alias gc='git commit --verbose' +alias gl="git pull" +alias gm='git merge' +alias gp='git push' + +# Graphicsmagick override +alias grm="/usr/local/bin/gm" + +# JS friendly tree +alias arbol="tree -I 'node_modules|bower_components|doc'" + +# Load Script Version Managers because they slow +alias enable-nvm='source $(brew --prefix nvm)/nvm.sh' +alias workon="echo 'DISABLED: run enable-virtualenvwrapper to enable'" +alias enable-virtualenvwrapper="unalias workon; source /usr/local/bin/virtualenvwrapper.sh" +alias enable-rvm="source $HOME/.rvm/scripts/rvm"