diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-12-22 19:26:02 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-12-22 19:26:02 -0500 |
| commit | e397b40ce7b4d6c0d12c6365b2a5f3a269d8caea (patch) | |
| tree | 560858ca8da2a915ec533ecf6686fabfbbcffef3 /.bashrc | |
| parent | 0a2e30e54f9ca7331df3a59d8b7a0bf0d277022e (diff) | |
| download | eibhear-e397b40ce7b4d6c0d12c6365b2a5f3a269d8caea.tar.gz eibhear-e397b40ce7b4d6c0d12c6365b2a5f3a269d8caea.tar.zst eibhear-e397b40ce7b4d6c0d12c6365b2a5f3a269d8caea.zip | |
shortcut sourcing now non-automatic
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -9,11 +9,9 @@ stty -ixon # Disable ctrl-s and ctrl-q. shopt -s autocd #Allows you to cd into directory merely by typing the directory name. HISTSIZE= HISTFILESIZE= # Infinite history. -# Setting Bash prompt. Capitalizes username and host if root user (my root user uses this same config file). -if [ "$EUID" -ne 0 ] - then export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" - else export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]ROOT\[$(tput setaf 2)\]@\[$(tput setaf 4)\]$(hostname | awk '{print toupper($0)}') \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" -fi +export PS1="\[$(tput bold)\]\[$(tput setaf 1)\][\[$(tput setaf 3)\]\u\[$(tput setaf 2)\]@\[$(tput setaf 4)\]\h \[$(tput setaf 5)\]\W\[$(tput setaf 1)\]]\[$(tput setaf 7)\]\\$ \[$(tput sgr0)\]" + +[ -f "$HOME/.shortcuts" ] && source "$HOME/.shortcuts" # Load shortcut aliases export GPG_TTY=$(tty) |
