Created
March 2, 2016 00:42
-
-
Save taise/9baee48fa4f481faaa9b to your computer and use it in GitHub Desktop.
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
| set LANG en_US.UTF-8 | |
| # for homebrew | |
| set -x PATH=/usr/local/bin $PATH | |
| set -x PATH=/usr/local/sbin $PATH | |
| # Customize to your needs... | |
| export LSCOLORS=gxfxcxdxbxegedabagacad | |
| alias ls='ls -G' | |
| alias today='mkdir `date +"%Y%m%d"`' | |
| #export SCREENDIR="/Users/taise/.screen" | |
| # for Perl | |
| set -x PERL_MB_OPT "--install_base \"$HOME/perl5\"" | |
| set -x PERL_MM_OPT "INSTALL_BASE=$HOME/perl5" | |
| # for Ruby | |
| #eval "$(rbenv init -)"; | |
| set -x PATH $HOME/.rbenv/bin $PATH | |
| set -x PATH $HOME/.rbenv/shims $PATH | |
| rbenv rehash >/dev/null ^&1 | |
| alias r='rails' | |
| alias rspec='rspec --color' | |
| alias rspecf='rspec --color --format doc' | |
| alias be='bundle exec' | |
| alias bi='bundle install' | |
| alias gi='gem install --no-ri --no-rdoc' | |
| # for MySQL | |
| set -x $PATH /usr/local/mysql/bin | |
| # for Apache | |
| set -x PATH /usr/local/Cellar/httpd/2.2.27/sbin $PATH | |
| #for PostgreSQL | |
| export PGDATA=/usr/local/var/postgres | |
| alias ps_start='pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start' | |
| alias ps_stop='pg_ctl -D /usr/local/var/postgres stop -s -m fast' | |
| alias ps_status='pg_ctl -D /usr/local/var/postgres status' | |
| #for JavaScript | |
| set -x PATH $HOME/.nodebrew/current/bin $PATH | |
| #cat /Users/taise/Documents/todo.txt | |
| # for Julia | |
| # for Scala | |
| export SPARK_HOME='/usr/local/spark/spark-1.1.1' | |
| set -x PATH $PATH $SPARK_HOME/bin | |
| export SBT_OPTS='-Xms512M -Xmx3072M -Xss256M -XX:+UseParNewGC -XX:+UseConcMarkSweepGC' | |
| # for PlayFramework | |
| alias a='activator' | |
| # for Python | |
| #eval "$(pyenv init -)"; | |
| set -x PATH $HOME/.pyenv/bin $PATH | |
| set -x PATH $HOME/.pyenv/shims $PATH | |
| pyenv rehash >/dev/null ^&1 | |
| # for Go | |
| export GOPATH=$HOME/dev/go | |
| set -x PATH $PATH $GOPATH/bin | |
| # for peco | |
| set fish_plugins theme peco | |
| function fish_user_key_bindings | |
| bind \cr peco_select_history # Bind for prco history to Ctrl+r | |
| end | |
| set -x PATH $HOME/.embulk/bin $PATH | |
| # notification | |
| if test $CMD_DURATION | |
| if test $CMD_DURATION -gt (math "1000 * 10") | |
| set secs (math "$CMD_DURATION / 1000") | |
| notify-send "$history[1]" "Returned $status, took $secs seconds" | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment