forked from ndparker/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
29 lines (22 loc) · 1.14 KB
/
.aliases
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
# Aliases defined for bash/zsh...
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ls='ls -FGlAhp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
# Moar colors
alias grep='grep --color=always'
alias tree='tree -C'
alias ..='cd ..' # /me hates that command...
alias tac='tail -r' # well, mac...
# Vim
alias mview='mvim -R'
# git
alias gplease='git push --force-with-lease'
alias docker_remove_containers='docker rm -fv $(docker ps -aq)'
alias docker_remove_images='docker rmi -f $(docker images -aq)'
alias docker_remove_volumes='docker volume prune -f'
alias docker_remove_network='docker network prune -f'
alias dockerclean='docker_remove_containers || true && docker_remove_images || true && docker_remove_volumes && docker_remove_network'
# Alasco
alias aalasco="cd /Users/sebastianseitz/Development/alasco-app/ && source .venv/bin/activate"