dotfiles

Configuration for the software I use.
git clone https://git.sr.ht/~jbauer/dotfiles
Log | Files | Refs | README | LICENSE

commit 2cc473976616050e00a85043eeee07c0221b55d5
parent 4cb1f7a85a7fa57573e41458f571b024de5a6e0f
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue,  2 Feb 2021 21:11:48 -0500

Update shrc

Diffstat:
M.config/shrc | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/.config/shrc b/.config/shrc @@ -13,7 +13,11 @@ HISTSIZE=100000 stty -ixon # Shell prompt -PS1='[`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` $ ' +if [ $(whoami) = 'root' ]; then + PS1='(ROOT) [`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` # ' +else + PS1='[`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` $ ' +fi # Enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then @@ -24,9 +28,9 @@ fi # Alias definitions: alias vi='nvim' -alias rm='/bin/rm -Iv' -alias mv='/bin/mv -iv' -alias cp='/bin/cp -iv' +alias rm='rm -Iv' +alias mv='mv -iv' +alias cp='cp -iv' alias tmux='tmux -f "$XDG_CONFIG_HOME"/tmux/tmux.conf' alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"' alias copy='xclip -sel c'