Created
June 27, 2020 20:48
-
-
Save dillera/e5be2507e85ba345a469e89524e010e0 to your computer and use it in GitHub Desktop.
Bashrc for use with RSE June 2020
This file contains hidden or 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 " ______ ________ " | |
echo " / __/ / / / __/ / " | |
echo " / _// /_/ / _// /__ " | |
echo "/_/ \____/___/____/ " | |
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' | |
alias rpmlist="rpm -qa --qf '(%{INSTALLTIME:date}): %{NAME}-%{VERSION}\n' " | |
alias sginit="~/sgug-rse.git/sgugshell.sh" | |
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 | |
unset PATH | |
# For DIDBS | |
# 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 | |
# FOR SGUG | |
export PATH=/usr/sgug/bin:/usr/sgug/sbin:~/.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 sgug-rse' | |
#END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment