Short function syntax
This commit is contained in:
parent
04b7020be2
commit
c1d7982c61
10
zsh/aliases
10
zsh/aliases
|
@ -8,7 +8,7 @@ if command_exists 'git'; then
|
||||||
alias gtl='git describe --tags --abbrev=0'
|
alias gtl='git describe --tags --abbrev=0'
|
||||||
alias gpb='git push origin'
|
alias gpb='git push origin'
|
||||||
|
|
||||||
function git-new-root {
|
git-new-root() {
|
||||||
git filter-branch --subdirectory-filter "$@" --prune-empty -- --all
|
git filter-branch --subdirectory-filter "$@" --prune-empty -- --all
|
||||||
}
|
}
|
||||||
# find oh-my-zsh's here: ~/.oh-my-zsh/plugins/git/git.plugin.zsh
|
# find oh-my-zsh's here: ~/.oh-my-zsh/plugins/git/git.plugin.zsh
|
||||||
|
@ -25,7 +25,7 @@ elif is_mac; then
|
||||||
# Open file in emacs server; must be running!
|
# Open file in emacs server; must be running!
|
||||||
alias e="emacsclient -n"
|
alias e="emacsclient -n"
|
||||||
|
|
||||||
function o {
|
o() {
|
||||||
if [ $# -eq 0 ]; then
|
if [ $# -eq 0 ]; then
|
||||||
open .
|
open .
|
||||||
else
|
else
|
||||||
|
@ -39,12 +39,14 @@ command_exists 'tmux' && alias t='tmux -CC'
|
||||||
|
|
||||||
# transmission-remote
|
# transmission-remote
|
||||||
if command_exists 'transmission-remote'; then
|
if command_exists 'transmission-remote'; then
|
||||||
|
|
||||||
alias bt="transmission-remote server"
|
alias bt="transmission-remote server"
|
||||||
alias btl="bt -l"
|
alias btl="bt -l"
|
||||||
alias bta="bt --add"
|
alias bta="bt --add"
|
||||||
|
|
||||||
function btr { bt -t$1 -r }
|
btr() { bt -t$1 -r }
|
||||||
function bts { bt -t$1 -S }
|
bts() { bt -t$1 -S }
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias va='vagrant'
|
alias va='vagrant'
|
||||||
|
|
Loading…
Reference in a new issue