Add toolbox and work aliases

This commit is contained in:
Quentin Godefroid 2017-12-18 12:54:31 +01:00
parent c5c1de74c9
commit e71c2906af
4 changed files with 12 additions and 2 deletions

View file

@ -11,5 +11,5 @@ if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
fi
for _FILE in $(ls ~/dotfiles/bash/); do
source $_FILE
source ~/dotfiles/bash/$_FILE
done

View file

@ -14,3 +14,10 @@ alias flip="shuf -i 0-1 -n 1 | sed -e 's/1/Pile/' -e 's/0/Face/'"
alias dl="wget -r -k -T 5 -t 2 -U 'Mozilla/5.0 (X11; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0' "
alias paste="pastebin -m -n Hactar"
alias pass="tr -dc A-Za-z0-9_ < /dev/urandom | head -c 20 | xargs"
alias os="openstack"
alias oss="openstack server"
alias osc="openstack console log show"
alias public="z3 root@public01.infra.gs.ovh.net"
alias melt="sm3 gs@mozg-meltingpot.ovh.ha.ovh.net"
alias hr-admin="z3 root@hr-admin.rungs.ovh"
alias mis="sm3 mozg-mis.ovh.ha.ovh.net"

View file

@ -1,3 +1,3 @@
export GOROOT=$HOME/go
export GOPATH=$GOROOT/bin
export PATH=~/bin:$PATH:$GOROOT/bin
export PATH=~/toolbox:~/bin:$PATH:$GOROOT/bin

3
bin/initenv Normal file → Executable file
View file

@ -3,6 +3,9 @@
for _FILE in .bashrc bin .vim .vimrc .zshrc
do
if [ ! -L $HOME/$_FILE ]; then
if [[ -f $HOME/$_FILE ]]; then
mv $HOME/$_FILE $HOME/$_FILE.bak
fi
ln -s "$HOME/dotfiles/$_FILE" "$HOME/$_FILE"
fi
done