1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

aliases: inline one-line function aliases

This commit is contained in:
Joe Groocock 2018-10-31 21:51:52 +00:00
parent c03170a4ef
commit cfe95eb879
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -250,9 +250,7 @@ _dsh() {
} }
alias dm='docker-machine' alias dm='docker-machine'
dm-con() { dm-con() { eval $(docker-machine env $1); }
eval $(docker-machine env $1)
}
alias dmc=dm-con alias dmc=dm-con
alias dc='docker-compose' alias dc='docker-compose'
@ -277,9 +275,8 @@ alias sshc="$EDITOR ~/.ssh/config"
alias dotfiles="cd $DOTFILES" alias dotfiles="cd $DOTFILES"
alias i3c="$EDITOR $XDG_CONFIG_HOME/i3/config ; i3-msg restart" alias i3c="$EDITOR $XDG_CONFIG_HOME/i3/config ; i3-msg restart"
alias i3bc="$EDITOR $XDG_CONFIG_HOME/i3/blocks/config ; i3-msg restart" alias i3bc="$EDITOR $XDG_CONFIG_HOME/i3/blocks/config ; i3-msg restart"
i3b() { i3b() { $EDITOR $XDG_CONFIG_HOME/i3/blocks/$@; }
$EDITOR $XDG_CONFIG_HOME/i3/blocks/$@
}
alias sf=screenfetch alias sf=screenfetch
alias nf=neofetch alias nf=neofetch
randstr() { tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w $1 | head -n 1; } randstr() { tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w $1 | head -n 1; }