summaryrefslogtreecommitdiff
path: root/bashrc
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-05-20 16:21:02 +0300
committerLars Wirzenius <liw@liw.fi>2017-05-20 16:21:02 +0300
commit4a80fe5400746c2bba090b3a494d5fcf5a58ba61 (patch)
treefd95bcee29f3a5127e3db5377e921a3548c19fb1 /bashrc
parent921401417cf592f5ec45dad091df1f9feaf12626 (diff)
downloadliw-dot-files-4a80fe5400746c2bba090b3a494d5fcf5a58ba61.tar.gz
Put hostname in $PS1 if not my laptop
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc16
1 files changed, 15 insertions, 1 deletions
diff --git a/bashrc b/bashrc
index d6bb201..b4c53b1 100644
--- a/bashrc
+++ b/bashrc
@@ -152,7 +152,18 @@ define_ps1()
termattr bold blue
date +%H:%M | tr -d '\n'
- printf ' \w '
+ local hostname="$(hostname)"
+ case "$hostname" in
+ exolobe3)
+ printf ' \w '
+ ;;
+ *)
+ termattr red
+ printf ' %s' "$hostname"
+ termattr bold blue
+ printf ':\w '
+ ;;
+ esac
termattr normal
if is_git_repo
@@ -211,11 +222,14 @@ fi
export PAGER=less
export LESSCHARSET=utf-8
export HISTCONTROL=ignoredups
+export HISTFILESIZE=500
export PATH="$PATH:$HOME/bin"
export DEBEMAIL=liw@liw.fi
export VIRSH_DEFAULT_CONNECT_URI=qemu:///system
export LANG=en_GB.UTF-8
export LC_COLLATE=fi_FI.UTF-8
+export ANSIBLE_ROLES_PATH="$HOME/qvarnlabs/code/debian-ansible/roles"
+
PROMPT_DIRTRIM=1