Merge branch 'master' of gitlab.com:tyrelsouza/dotfiles

This commit is contained in:
Tyrel Souza 2017-02-02 14:13:37 -05:00
parent 82bccebb71
commit ee244c8aad
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
6 changed files with 15 additions and 18 deletions

View File

@ -10,6 +10,7 @@ ln -s ~/.config/nvim ~/.vim
ln -s ~/.config/nvim/init.vim ~/.vimrc ln -s ~/.config/nvim/init.vim ~/.vimrc
ln -s $(pwd)/zshrc ~/.zshrc ln -s $(pwd)/zshrc ~/.zshrc
ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
# Setup vim # Setup vim
mkdir -p ~/.vim/bundle mkdir -p ~/.vim/bundle

View File

@ -1,20 +1,3 @@
alias nginx.start='sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.stop='sudo launchctl unload /Library/LaunchDaemons/homebrew.mxcl.nginx.plist'
alias nginx.restart='nginx.stop && nginx.start'
alias php-fpm.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist"
alias php-fpm.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist"
alias php-fpm.restart='php-fpm.stop && php-fpm.start'
alias mysql.start="launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.stop="launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist"
alias mysql.restart='mysql.stop && mysql.start'
alias nginx.logs.error='tail -250f /usr/local/etc/nginx/logs/error.log'
alias nginx.logs.access='tail -250f /usr/local/etc/nginx/logs/access.log'
alias nginx.logs.default.access='tail -250f /usr/local/etc/nginx/logs/default.access.log'
alias nginx.logs.default-ssl.access='tail -250f /usr/local/etc/nginx/logs/default-ssl.access.log'
alias nginx.logs.phpmyadmin.error='tail -250f /usr/local/etc/nginx/logs/phpmyadmin.error.log'
alias nginx.logs.phpmyadmin.access='tail -250f /usr/local/etc/nginx/logs/phpmyadmin.access.log'
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;}
function glate(){git for-each-ref --sort=-committerdate refs/heads/ --format='%(refname) %(committerdate) %(authorname)' | sed 's/refs\/heads\///g';}
export HOMEBREW_GITHUB_API_TOKEN="caf4cd85c6eb6ddcf006d4571d4a294c0b0592e4" export HOMEBREW_GITHUB_API_TOKEN="caf4cd85c6eb6ddcf006d4571d4a294c0b0592e4"
alias ag='\ag --pager="less"' alias ag='\ag --pager="less"'
alias cg='cd "$(git rev-parse --show-toplevel)"' alias cg='cd "$(git rev-parse --show-toplevel)"'
@ -22,9 +5,15 @@ alias fuck='eval $(thefuck $(fc -ln -1)); history -r'
alias g='git' alias g='git'
alias pdb="python -m pdb" alias pdb="python -m pdb"
alias ppjson="python -m json.tool" alias ppjson="python -m json.tool"
alias rm=trash
# Addgene specific # Addgene specific
alias adocs='cd $ADDGENE_CORE_REPO_DIR/docs && make html && open $ADDGENE_CORE_REPO_DIR/docs/build/html/index.html' alias adocs='cd $ADDGENE_CORE_REPO_DIR/docs && make html && open $ADDGENE_CORE_REPO_DIR/docs/build/html/index.html'
alias deploy_all="fab -R silver-web deploy:master && fab -R gold-web deploy:master && fab -R jupyter fab -R jupyter deploy_jupyter && fab --parallel avail_staging_hosts deploy:master" alias deploy_all="fab -R silver-web deploy:master && fab -R gold-web deploy:master && fab -R jupyter fab -R jupyter deploy_jupyter && fab --parallel avail_staging_hosts deploy:master"
alias deploy_all_migration="fab -R silver-web deploy:master,1 && fab -R gold-web deploy:master,1 && fab -R jupyter deploy_jupyter & fab --parallel avail_staging_hosts deploy:master,1" alias deploy_all_migration="fab -R silver-web deploy:master,1 && fab -R gold-web deploy:master,1 && fab -R jupyter deploy_jupyter & fab --parallel avail_staging_hosts deploy:master,1"
alias aenv='env | sort | grep ADDGENE'
alias sl='source local.env'
unalias mysql
if [[ $OSTYPE == darwin* ]]; then
alias rm=trash;
fi;

View File

@ -11,3 +11,4 @@ tmp/**/*
!tmp/cache/.keep !tmp/cache/.keep
.pre-commit-config.yaml .pre-commit-config.yaml
.ruby-version .ruby-version
release_package.sh

3
pythonstartup.py Normal file
View File

@ -0,0 +1,3 @@
import sys
import pprint
sys.displayhook = pprint.pprint

2
vimrc
View File

@ -114,3 +114,5 @@ if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local source ~/.vimrc.local
endif endif
set background=dark set background=dark
let NERDTreeIgnore = ['\.pyc$']

1
zshrc
View File

@ -72,3 +72,4 @@ source $HOME/.profile
if [ -e $HOME/.credentials ];then if [ -e $HOME/.credentials ];then
source $HOME/.credentials source $HOME/.credentials
fi fi
export PYTHONSTARTUP=$HOME/.pythonstartup.py