diff --git a/.bashrc b/.bashrc index db57ea5..b527098 100644 --- a/.bashrc +++ b/.bashrc @@ -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 \ No newline at end of file diff --git a/bash/bash_aliases b/bash/bash_aliases index 868b7e8..da36db8 100644 --- a/bash/bash_aliases +++ b/bash/bash_aliases @@ -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" diff --git a/bash/bash_export b/bash/bash_export index d662eca..c3755f1 100644 --- a/bash/bash_export +++ b/bash/bash_export @@ -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 \ No newline at end of file diff --git a/bin/initenv b/bin/initenv old mode 100644 new mode 100755 index f72600f..f294dde --- a/bin/initenv +++ b/bin/initenv @@ -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