diff --git a/bash_rc b/bash_rc index 3950594..d103896 100755 --- a/bash_rc +++ b/bash_rc @@ -3,8 +3,8 @@ # If not running interactively, don't do anything case $- in - *i*) ;; - *) return;; + *i*) ;; + *) return;; esac # Source global definitions @@ -51,29 +51,29 @@ shopt -s checkwinsize # set variable identifying the chroot you work in (used in the prompt below) if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then - debian_chroot=$(cat /etc/debian_chroot) + debian_chroot=$(cat /etc/debian_chroot) fi # If this is an xterm set the title to user@host:dir case "$TERM" in -xterm*|rxvt*) + xterm*|rxvt*) PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" ;; -*) + *) ;; esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then # shellcheck disable=SC2015 - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + #alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' fi # some more ls aliases @@ -91,8 +91,8 @@ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo # See /usr/share/doc/bash-doc/examples in the bash-doc package. if [ -f ~/.bash_aliases ]; then - # shellcheck disable=SC1090 - . ~/.bash_aliases + # shellcheck disable=SC1090 + . ~/.bash_aliases fi # enable programmable completion features (you don't need to enable @@ -115,6 +115,6 @@ export SCREENDIR="${HOME}/.screen" mkdir -p "${HOME}/.bashrc.d" while read -r bashrc_file do - # shellcheck disable=SC1090 - source "${bashrc_file}" + # shellcheck disable=SC1090 + source "${bashrc_file}" done <<< "$(find "${HOME}/.bashrc.d" -type f)" \ No newline at end of file