Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dillera
Last active January 12, 2020 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dillera/3945a7b8c9a04feb51cf56e16d19fdad to your computer and use it in GitHub Desktop.
Save dillera/3945a7b8c9a04feb51cf56e16d19fdad to your computer and use it in GitHub Desktop.
sample .bashrc for using didbs .0.9 to build all sorts of wonderful modern packages
For bash you should have two dot files in your home dir:
.bash_profile
.bashrc
I keep profile very simple, and have everything in bashrc as you can see....
888 888 dP,e, ,e, 888
888 88e ,"Y88b dP"Y 888 ee 888 88e 888,8, e88 88e 8b " " 888 ,e e,
888 888b "8" 888 C88b 888 88b 888 888b 888 " d888 888b 888888 888 888 d88 88b
888 888P ,ee 888 Y88D 888 888 888 888P 888 Y888 888P 888 888 888 888 ,
888 88" "88 888 d,dP 888 888 888 88" 888 "88 88" 888 888 888 "YeeP"
888
888
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
888 888
888 88e ,"Y88b dP"Y 888 ee 888,8, e88'888
888 888b "8" 888 C88b 888 88b 888 " d888 '8
888 888P ,ee 888 Y88D 888 888 888 Y888 ,
888 88" "88 888 d,dP 888 888 888 "88,e8'
echo setup `hostname` basic env
echo ----------------------------
echo ' '
export TERM=xterm
echo 'use aterm to start mult-aterm window'
alias aterm=' multi-aterm -tr -bg black -fg white -font lucidasanstypewriter-14 &'
alias devpkg='versions |grep 7.4.4'
echo setup sgidev network build env
echo ----------------------------
# LDs
export LD_LIBRARY_PATH=/usr/didbs/current/lib:/usr/didbs/current/lib32:/usr/lib32${ldlibpath:+:$ldlibpath}
export LD_LIBRARYN32_PATH="/usr/didbs/current/lib32:/usr/didbs/current/lib32:/usr/lib32${ldlibpath:+:$ldlibpath}"
export PKG_CONFIG_PATH=/usr/didbs/current/lib32/pkgconfig
export CC=/usr/didbs/current/bin/gcc
export CXX=/usr/didbs/current/bin/g++
export compiler=gcc
export prefix=/usr/people/dillera/.local
unset PATH
export PATH=/usr/didbs/current/bin:/usr/didbs/current/sbin:~/.local/bin:/usr/local/bin:/usr/local/sbin:/opt/local/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/etc:/usr/etc:/usr/bin/X11
# git prompt to show current branch
# this will show you the local working copy git branch in your command
# prompt - very handy for working w/ irixports and didbs
# comment this out until AFTER you have didbs installed w/ a working git
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
alias ggg='git log -n 25 --pretty=format:"%h - %an, %ar : %s" '
echo 'completed bash init for didbs'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment