From 383c0ef0a8aa5d566bba40b15f3d4677a5d47366 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 07 Mar 2016 16:15:55 -0500 Subject: .profile: New file --- diff --git a/.bashrc b/.bashrc index 0384e59..c5f7182 100644 --- a/.bashrc +++ b/.bashrc @@ -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}" -- cgit v0.9.1