-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zsh_alias
executable file
·48 lines (41 loc) · 1.51 KB
/
.zsh_alias
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
# -----------------------------------------------------------
# Aliases
# global
# included from .zshrc
# global Aliases for common terms
alias -g MVC="Model Controller View Lib" # eg: ag term MVC
# git: switched to zpresto aliases: https://github.com/sorin-ionescu/prezto/tree/master/modules/git
# gws, gwd, gp, gfr
alias gti='git'
alias g='git'
alias gs='git status'
alias gd='git diff'
alias gp='git push'
alias gm='git merge'
alias grp='git pull --rebase origin "$(git-branch-current 2> /dev/null)" && git push origin "$(git-branch-current 2> /dev/null)"'
alias grr='git pull --rebase origin "$(git-branch-current 2> /dev/null)" && git push origin "$(git-branch-current 2> /dev/null)"'
# shortcuts and remaps
#alias vim='vim -p'
alias vi='vim -p'
alias v='vim -p'
alias nano='vim -p'
alias m='meteor'
alias c='cordova'
alias s='sudo'
# docker-machine
alias d='docker'
[ -f ~/.zsh_alias.docker ] && source ~/.zsh_alias.docker
# docker-machine
alias d='docker'
alias dm='docker-machine'
alias dma='docker-machine active'
alias dm-ssh='docker-machine ssh `docker-machine active`'
alias dm-ip='docker-machine ip `docker-machine active`'
alias dm-env='docker-machine env `docker-machine active`'
alias dm-inspect='docker-machine inspect `docker-machine active`'
alias dm-config='docker-machine config `docker-machine active`'
alias weather='curl -f wttr.in'
alias vim="stty stop '' -ixoff ; vim"
# `Frozing' tty, so after any command terminal settings will be restored
ttyctl -f
#source /usr/share/virtualenvwrapper/virtualenvwrapper.sh