diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-01-05 10:28:54 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-01-05 10:28:54 +0100 |
| commit | e0c4cb9e45f339883d9ae7aeb52958c95c5ed839 (patch) | |
| tree | 42d9b12c73da23df89fc306d71d760227f0f7697 /.profile | |
| parent | aadfbdd2c890dfe277dbd25739241e864dbd74a5 (diff) | |
update .profile and bashrc
Diffstat (limited to '.profile')
| -rw-r--r-- | .profile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.profile b/.profile new file mode 100644 index 0000000..afa89c1 --- /dev/null +++ b/.profile @@ -0,0 +1,9 @@ +# ~/.profile + +[ -f /etc/hostname ] && HOSTNAME=$(cat /etc/hostname) || HOSTNAME=$(cat ~/.hostname) + +export PATH=~/bin:$PATH:~/go/bin + +[ "${SHELL##*/}" = bash ] && [ -f ~/.bashrc ] && . ~/.bashrc + +[ -f ~/.profile-$HOSTNAME ] && . ~/.profile-$HOSTNAME |
