Last active
August 29, 2015 14:07
-
-
Save loadx/40b5c105de502fe5526a to your computer and use it in GitHub Desktop.
windows bashrc
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
# override $SHELL | |
export SHELL=$(which zsh) | |
# COLORS | |
alias ls='ls -G --color=auto' | |
alias ll='ls -hl --color=auto' | |
alias stree='CPAU -u au\brennanm -p password -ex "C:\Program Files (x86)\Atlassian\SourceTree\SourceTree.exe"' | |
alias open='/cygdrive/c/windows/explorer.exe' | |
# enables color | |
export TERM=xterm-256color | |
# standard $PATH | |
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin/$SYSTEMROOT/system32:/cygdrive/c/HashiCorp/Vagrant/bin:/cygdrive/c/HashiCorp/packer:/cygdrive/c/php:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0/ | |
# ssh-agent | |
SSHAGENT=/usr/bin/ssh-agent | |
SSHAGENTARGS="-s" | |
if [ -z "$SSH_AUTH_SOCK" -a -x "$SSHAGENT" ]; then | |
eval `$SSHAGENT $SSHAGENTARGS` | |
ssh-add ~/.ssh/*.pem | |
trap "kill $SSH_AGENT_PID" 0 | |
fi | |
# EDITOR | |
export EDITOR='vim' | |
ec () { | |
# check if emacs daemon is started, otherwise start it | |
pgrep -f 'emacs --daemon' > /dev/null 2>&1 | |
if [ $? -ne 0 ]; then | |
emacs --daemon | |
fi | |
emacsclient -t $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment