]> git.r.bdr.sh - rbdr/dotfiles/blame - zsh/modules/aliases.zsh
Update config for local vim
[rbdr/dotfiles] / zsh / modules / aliases.zsh
CommitLineData
fa250235
BB
1# File operations
2alias cp="cp -i"
3alias mv="mv -i"
4alias rm="rm -i"
5alias ls="ls -FG"
6
7# Lazy rgs
8alias rgjs="rg -g '*.js' -g '*.svelte' -g '*.vue'"
9alias rgrb="rg -g '*.rb'"
10alias rgcss="rg -g '*.css'"
11
12# tmux
13alias ta="tmux attach -t"
14alias tn="tmux new -s"
15
16# Simple python server
b945717b 17alias spawn-server="python -m http.server 9000"
fa250235
BB
18
19# Git aliases
20alias g='git'
21alias gst="git status"
22alias gss="gst --short"
23alias gL="git log --graph --decorate"
24alias gc='git commit --verbose'
889954ad 25alias gco='git checkout'
fa250235
BB
26alias gl="git pull"
27alias gm='git merge'
28alias gp='git push'
29
30# Graphicsmagick override
0c7ba6eb
RBR
31if command -v brew &> /dev/null; then
32 alias grm="$(brew --prefix)/bin/gm"
33fi
fa250235
BB
34
35# JS friendly tree
d1d7b859 36alias arbol="tree -I 'node_modules|bower_components|doc|__pycache__|\.pyc'"
fa250235
BB
37
38# Load Script Version Managers because they slow
39alias enable-nvm='source $(brew --prefix nvm)/nvm.sh'
40alias workon="echo 'DISABLED: run enable-virtualenvwrapper to enable'"
41alias enable-virtualenvwrapper="unalias workon; source /usr/local/bin/virtualenvwrapper.sh"
42alias enable-rvm="source $HOME/.rvm/scripts/rvm"
4c76e4aa 43alias t="things.sh"