Last active
January 1, 2016 05:19
-
-
Save randria/8097882 to your computer and use it in GitHub Desktop.
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
#### Mac OSX ~/.bashrc #### | |
export LANG=POSIX | |
umask 0022 | |
export HISTCONTROL=ignoredups | |
export HISTSIZE=10000 | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
#export PS1="\[\033[31;38m\]\w\[\033[1;31m\]\$(__git_ps1)\[\033[00m\] " | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
export PS1="(\!)\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " | |
#export PS1="(\!)\[\033[0;32m\] \u@\h \w\$\[\033[0;30m\] " | |
#PS1="\[\033[s\033[0;0H\033[0;41m\033[K\033[1;33m\t\033[0m\033[u\](\!)\[\033[0;32m\] \u@\h \w\$\[\033[0;30m\] " | |
export PATH=/usr/local/bin:$PATH:~/bin | |
export JAVA_HOME=`/usr/libexec/java_home` | |
## software manager shortcuts | |
alias update='sudo softwareupdate --install --all' | |
alias updated='sudo softwareupdate --list' | |
. /opt/sw/bin/init.sh | |
## MAMP configuration | |
alias mampsql='/Applications/MAMP/Library/bin/mysql -u root --password='root' -h localhost -P 8889' | |
alias mampsqldump='/Applications/MAMP/Library/bin/mysqldump -u root --password='root' -h localhost -P 8889' | |
## virtualization shortcuts | |
alias win7='VBoxManage startvm win7-64-pro --type headless' | |
alias win7gui='VBoxManage startvm win7-64-pro' | |
alias win7off='VBoxManage controlvm win7-64-pro poweroff' | |
alias wxp='VBoxManage startvm winxp-sp3-pro --type headless' | |
alias wxpgui='VBoxManage startvm winxp-sp3-pro' | |
alias wxpoff='VBoxManage controlvm winxp-sp3-pro poweroff' | |
alias startsl='VBoxManage startvm sl-62-x86 --type headless' | |
alias lsvme='ssh virtmgr virsh -c xen+ssh://root@exar list' | |
alias lsvmk='ssh virtmgr virsh -c xen+ssh://root@kaan list' | |
## javaws shortcuts | |
alias javaws='/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/javaws' | |
alias console='javaws `ls -r1 ~/Downloads/viewer* | tail -1`' | |
alias idrac-viewer='javaws $(ls -1rt ~/Downloads/viewer* 2>/dev/null|tail -1)' | |
## git shortcuts | |
alias gs='git status -s' | |
alias gl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr %an)%Creset' --abbrev-commit --date=relative" | |
export LC_ALL="" | |
export LANG=C | |
alias rm='rm -i' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment