22 lines
658 B
Bash
22 lines
658 B
Bash
# Put all the commands here that should run regardless of whether
|
|
# this is an interactive or non-interactive shell.
|
|
|
|
# Example command:
|
|
umask 0027
|
|
|
|
# test if the prompt var is not set and also to prevent failures
|
|
# when `$PS1` is unset and `set -u` is used
|
|
if [ -z "${PS1:-}" ]; then
|
|
# prompt var is not set, so this is *not* an interactive shell
|
|
return
|
|
fi
|
|
|
|
# If we reach this line of code, then the prompt var is set, so
|
|
# this is an interactive shell.
|
|
# Put all the commands here that should run only if this is an
|
|
# interactive shell.
|
|
|
|
# Example command:
|
|
source ~/dotfiles/sh_personal #added by 6500gitsetup
|
|
alias clear="TERM=xterm /usr/bin/clear"
|