dotfiles

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

commit b2c809c1de3c60a6a4f2f472c09952b7d08c826e
parent 9ade790bac3f64cfb30174a5e6ab506a8ed98e3d
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Tue,  2 Feb 2021 21:23:09 -0500

spaces→tabs

Diffstat:
M.config/shrc | 14+++++++-------
M.profile | 14+++++++-------
2 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/.config/shrc b/.config/shrc @@ -2,8 +2,8 @@ # If not running interactively, don't do anything case $- in - *i*) ;; - *) return;; + *i*) ;; + *) return;; esac # Set history length @@ -14,16 +14,16 @@ stty -ixon # Shell prompt if [ $(whoami) = 'root' ]; then - PS1='(ROOT) [`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` # ' + PS1='(ROOT) [`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` # ' else - PS1='[`date +%H:%M:%S`] `hostname` `pwd | sed "s,^$HOME,~,"` $ ' + 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 - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='/bin/ls -vl --color=auto --group-directories-first' - alias grep='/bin/grep --color=auto' + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='/bin/ls -vl --color=auto --group-directories-first' + alias grep='/bin/grep --color=auto' fi # Alias definitions: diff --git a/.profile b/.profile @@ -9,7 +9,7 @@ # Set PATH to include my local binaries/scripts if [ -d "$HOME/.local/bin/" ]; then - PATH="$PATH:$HOME/.local/bin" + PATH="$PATH:$HOME/.local/bin" fi # Set golang environment variables @@ -68,17 +68,17 @@ export GROFF_NO_SGR=1 # If running bash if [ -n "$BASH_VERSION" ]; then - if [ -f "$HOME/.bashrc" ]; then + if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" - fi + fi # If running dash/ash else - if [ -f "$XDG_CONFIG_HOME/shrc" ]; then - export ENV="$XDG_CONFIG_HOME/shrc" - fi + if [ -f "$XDG_CONFIG_HOME/shrc" ]; then + export ENV="$XDG_CONFIG_HOME/shrc" + fi fi #For starting X on first login of a shell if [ ! $DISPLAY ] && [ $XDG_VTNR -eq 1 ]; then - exec startx + exec startx fi