From 3103ec163d781c7784da29f13e98f525379405fa Mon Sep 17 00:00:00 2001 From: Charles Danesi Date: Tue, 12 Nov 2024 15:06:46 -0500 Subject: [PATCH] fix .profile --- .profile | 20 ++++++++++++++++++++ .profile##default | 27 --------------------------- .profile##o.Darwin | 3 --- 3 files changed, 20 insertions(+), 30 deletions(-) create mode 100644 .profile delete mode 100644 .profile##default delete mode 100644 .profile##o.Darwin diff --git a/.profile b/.profile new file mode 100644 index 0000000..7fb56e2 --- /dev/null +++ b/.profile @@ -0,0 +1,20 @@ +# ~/.profile + +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + +if [ -d "$HOME/bin" ] ; then + PATH="$HOME/bin:$PATH" +fi + +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi + +if [ -f "$HOME/.bash_aliases" ]; then + . "$HOME/.bash_aliases" +fi diff --git a/.profile##default b/.profile##default deleted file mode 100644 index d89ea5a..0000000 --- a/.profile##default +++ /dev/null @@ -1,27 +0,0 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" -fi diff --git a/.profile##o.Darwin b/.profile##o.Darwin deleted file mode 100644 index 805cb3f..0000000 --- a/.profile##o.Darwin +++ /dev/null @@ -1,3 +0,0 @@ -if [ -f $HOME/.bash_aliases ]; then - . $HOME/.bash_aliases -fi