diff options
author | Nicholas Tay <nkt@outlook.kr> | 2021-04-09 18:00:27 +1000 |
---|---|---|
committer | Nicholas Tay <nkt@outlook.kr> | 2021-04-09 18:00:27 +1000 |
commit | 42506d1606fea81a67530a0ff6ed93ec816a1594 (patch) | |
tree | c18e9ea4ca28035e680b206d0386ffcad8c2e1f4 /.bashrc | |
download | dotlite-42506d1606fea81a67530a0ff6ed93ec816a1594.tar.gz dotlite-42506d1606fea81a67530a0ff6ed93ec816a1594.tar.bz2 dotlite-42506d1606fea81a67530a0ff6ed93ec816a1594.zip |
Initial lite config
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +# Nick's light .bashrc +# Basically the same as the full version (light already) + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +# Our prompt (user@computer: >>) +PS1="\[\033[38;5;14m\]\u\[$(tput sgr0)\]\[\033[38;5;243m\]@\[$(tput sgr0)\]\[\033[38;5;194m\]\h\[$(tput sgr0)\]\[\033[38;5;243m\]:\[$(tput sgr0)\]\[\033[38;5;15m\]\w \[$(tput sgr0)\]" + +[ ! -z "$SSH_CLIENT" ] && PS1="(SSH) $PS1" + +export HISTFILE="$HOME/.local/share/bash_history" + +# cd by name only is ok +shopt -s autocd + +# Load our aliases +[ -f $HOME/.config/aliasrc ] && . $HOME/.config/aliasrc |