Browse Source

Only run .bashrc.dotfiles for interative shells.

master
Fredrik Ekre 6 years ago
parent
commit
d4ef30da0a
  1. 7
      .bashrc.dotfiles

7
.bashrc.dotfiles

@ -1,9 +1,16 @@
# Common commands for .bashrc. Include by adding the following to .bashrc: # Common commands for .bashrc. Include by adding the following to .bashrc:
# #
# # Include cross-system common parts from .dotfiles.git repo
# if [ -f ~/.bashrc.dotfiles ]; then # if [ -f ~/.bashrc.dotfiles ]; then
# . ~/.bashrc.dotfiles # . ~/.bashrc.dotfiles
# fi # fi
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# dotfiles alias # dotfiles alias
alias dotfiles='git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME/' alias dotfiles='git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME/'

Loading…
Cancel
Save