Created
October 24, 2016 06:00
-
-
Save charz/e89365170aa4bd2087a81b01132a306f to your computer and use it in GitHub Desktop.
.ss_profile
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
if [ -f ~/.alias ]; then | |
. ~/.alias | |
fi | |
if [ -f ~/.prompt ]; then | |
. ~/.prompt | |
fi | |
if [ -f ~/.ss_profile ]; then | |
. ~/.ss_profile | |
fi | |
export LANG="en_US.UTF-8" | |
export LC_ALL="en_US.UTF-8" | |
# LDFLAGS: -L/usr/local/opt/readline/lib | |
# CPPFLAGS: -I/usr/local/opt/readline/include | |
export PATH=/usr/local/bin:/usr/local/sbin:$PATH | |
export WORKON_HOME=$HOME/.VENV | |
source /usr/local/bin/virtualenvwrapper.sh | |
# for GO | |
export PATH=/usr/local/go/bin:$PATH | |
export GOPATH=$HOME/gowork |
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
function tarss () | |
{ | |
if [ -z "$1" ]; then | |
echo "Please run this with swiftstack diagnostics tarball" | |
return 1 | |
fi | |
if [[ $1 = *.tar.gz ]]; then | |
DIR=`echo $1 | cut -d '.' -f 1` | |
echo ${DIR}; | |
mkdir -p ${DIR}; | |
tar zxvf $1 -C ${DIR}; | |
mv $1 ${DIR} | |
mv ${DIR}/diagnostics/* ${DIR} | |
rmdir ${DIR}/diagnostics | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment