Created
November 3, 2017 09:30
-
-
Save agent-simon-s/c69aaeaceb4b0e61d007a763113f225f to your computer and use it in GitHub Desktop.
Sh: .profile starter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "*** executing ~/.profile 1st" | |
# | |
# | |
#cal | |
#Prompt | |
#PS1="\W \$" # working-dir + $ or # for root | |
#PS1="\w \$" # full working-dir + $ or # for root | |
PS1="\t \W \$" # 24hr time w/ sec + working-dir + $ or # for root | |
#environment path | |
#export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting | |
#export PATH="/usr/local/share/npm/bin:/usr/local/bin:/usr/local/sbin:$PATH:$HOME/.rvm/bin:/Users/angelboi/.gem/ruby/1.8/bin " | |
#environment path with mySQL | |
#export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH:$HOME/.rvm/bin" | |
#export JAVA_HOME=$(/usr/libexec/java_home) | |
#sources bashrc if it exists | |
if [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
#sources git auto completion if it exists | |
if [ -f ~/.git-completion.bash ]; then | |
source ~/.git-completion.bash | |
fi | |
#sources shell aliases if they exists | |
if [ -f ~/.aliases.bash ]; then | |
source ~/.aliases.bash | |
fi | |
#util preferences | |
export LESS='-MN' | |
export LESS="-erX" | |
export EDITOR='subl -w' #only uncomment if subl is installed & configured | |
#Defaults set sys preferences | |
defaults write com.apple.finder AppleShowAllFiles -bool TRUE | |
defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE | |
# include locally installed Node.js in PATH | |
if [ -d "$HOME/opt" ]; then | |
PATH="$PATH:$HOME/opt/node/bin" | |
fi | |
#Welcome message | |
echo -n "|| Welcome to Mac OS X "; whoami | |
#echo "" | |
echo -n "|| Todays date is: "; date "+%Y-%m-%d %H:%M:%S" | |
#echo "|| " | |
echo -n "|| Uptime :"; uptime | |
echo "---------------------------------------------------------" | |
ver |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment