diff options
author | P. J. McDermott <pj@pehjota.net> | 2016-03-07 16:15:55 (EST) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2016-03-07 16:15:55 (EST) |
commit | 383c0ef0a8aa5d566bba40b15f3d4677a5d47366 (patch) | |
tree | c7ec2cbdecac4bc1a8f012260a9256fe6e36399e | |
parent | 4381b89c96a70531a5d0a40675ebed21cb77b199 (diff) | |
download | bash-383c0ef0a8aa5d566bba40b15f3d4677a5d47366.zip bash-383c0ef0a8aa5d566bba40b15f3d4677a5d47366.tar.gz bash-383c0ef0a8aa5d566bba40b15f3d4677a5d47366.tar.bz2 |
.profile: New file
-rw-r--r-- | .bashrc | 9 | ||||
-rwxr-xr-x | .gitignore.d/bash | 1 | ||||
-rw-r--r-- | .profile | 15 |
3 files changed, 18 insertions, 7 deletions
@@ -1,10 +1,5 @@ -PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games' -PATH="${HOME}/bin:${PATH}" - -# Interactive only beyond this point -[ -z "${PS1}" ] && return - -PATH="${HOME}/ibin:${PATH}" +# Interactive shells only beyond this point +[ "${PS1+set}" = 'set' ] || return # Bash history HISTSIZE=1000 diff --git a/.gitignore.d/bash b/.gitignore.d/bash index 9a23ae6..348ccee 100755 --- a/.gitignore.d/bash +++ b/.gitignore.d/bash @@ -2,6 +2,7 @@ * # Include relevant files +!/.profile !/.bashrc !/.bash_exports !/.bash_aliases diff --git a/.profile b/.profile new file mode 100644 index 0000000..3353aca --- /dev/null +++ b/.profile @@ -0,0 +1,15 @@ +# ~/.profile: executed by the command interpreter for login shells. +# This file is not read by bash if ~/.bash_profile or ~/.bash_login +# exists. + +if ! [ "x${BASH_VERSION}" = 'x' ]; then + . "${HOME}/.bashrc" +fi + +PATH='/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games' +PATH="${HOME}/bin:${PATH}" + +# Interactive shells only beyond this point. +[ "${PS1+set}" = 'set' ] || return + +PATH="${HOME}/ibin:${PATH}" |