diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-05-20 16:21:02 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-05-20 16:21:02 +0300 |
commit | 4a80fe5400746c2bba090b3a494d5fcf5a58ba61 (patch) | |
tree | fd95bcee29f3a5127e3db5377e921a3548c19fb1 /bashrc | |
parent | 921401417cf592f5ec45dad091df1f9feaf12626 (diff) | |
download | liw-dot-files-4a80fe5400746c2bba090b3a494d5fcf5a58ba61.tar.gz |
Put hostname in $PS1 if not my laptop
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 |