update bashrc for keiran

This commit is contained in:
root
2021-02-13 19:30:28 -05:00
parent cdd882e72c
commit cc9a369e24
2 changed files with 9 additions and 19 deletions

View File

@@ -37,9 +37,6 @@ fi
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias vi='vim'
export EDITOR='vim'
@@ -62,24 +59,15 @@ else
PS1="[\$(awk {'print \$1'} /proc/loadavg)/\$(grep -c '^processor' /proc/cpuinfo)][\u@\h \w]$ "
fi
if which apt-get >/dev/null 2>&1; then
alias update="sudo apt-get update && sudo apt-get -y upgrade"
else
alias update="yum clean all && yum -y update"
fi
if [ $(id -u) -gt 0 ]; then
alias puppet='sudo puppet'
alias fab='sudo fab'
fi
if test -d ~/.local/bin; then
PATH="${PATH}:~/.local/bin"
fi
PATH="${PATH}:${HOME}/.local/bin"
alias random='< /dev/urandom tr -dc A-Za-z0-9 | head -c${1:-32};echo'
{% if bashrc_user is defined and bashrc_user == 'root' and 'restic' in pillar %}
{%- if bashrc_user is defined and bashrc_user == 'keiran' %}
{#- TODO: this should be in pillar #}
alias keirmounts=/home/keiran/Documents/scripts/mounts.sh
alias grive=/home/keiran/Documents/scripts/grive.sh
{%- endif %}
{%- if bashrc_user is defined and bashrc_user == 'root' and 'restic' in pillar %}
export RESTIC_REPOSITORY={{ salt.pillar.get('restic:repo') }}
export RESTIC_PASSWORD={{ salt.pillar.get('restic:pass') }}
{% endif %}