Skip to content

Instantly share code, notes, and snippets.

@adamki
Created November 7, 2015 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamki/e652ecac012ce45e3121 to your computer and use it in GitHub Desktop.
Save adamki/e652ecac012ce45e3121 to your computer and use it in GitHub Desktop.
fish.config
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Path to your custom folder (default path is ~/.oh-my-fish/custom)
#set fish_custom $HOME/dotfiles/oh-my-fish
# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish
# Custom plugins and themes may be added to ~/.oh-my-fish/custom
# Plugins and themes can be found at https://github.com/oh-my-fish/
################################################################################
### Fish ###
################################################################################
#Theme 'scorphish'
Theme 'agnoster'
Plugin 'theme'
Plugin 'rvm'
################################################################################
### alias section ###
################################################################################
function fishc
vim ~/.config/fish/config.fish
end
function vimrc
vim ~/.vimrc
end
function tmuxc
vim ~/.tmux.conf
end
################################################################################
### directory stuff ###
################################################################################
function cur
cd /users/adamki/Turing/module3/week_5/mashy-app
end
function portfolio
cd /users/adamki/Turing/portfolio/portfolios/students/adamjensen/
end
function aboutme
cd /users/adamki/Turing/module2/pre-work/
end
### modules ###
function m1
cd /users/adamki/turing/module1/
end
function m2
cd /users/adamki/turing/module2/
end
function m3
cd /users/adamki/turing/module3/
end
function m4
cd /users/adamki/turing/module4/
end
### local shortcuts ###
function dsa
cd /users/adamki/turing/dsa/data_structures_and_algorithms/
end
function warmups
cd /users/adamki/turing/warm_ups
end
function exercisms
cd /users/adamki/turing/exercism
end
function cl
clear
end
function l
ls -l
end
### external URLs ###
function today
open http://today.turing.io/
end
function ak
open https://github.com/adamki
end
function goodies
open https://github.com/adamki/references/edit/master/goodies.md
end
function homework
open https://github.com/turingschool/turing-homework/blob/master/module-2-homework.markdown
end
################################################################################
### git shit ###
################################################################################
function gd
git diff --patience --ignore-space-change
end
function gc
git commit -m
end
function gb
git branch
end
function ga
git add
end
function ga.
git add .
end
function gh
git hist -5
end
function gs
git status COMMAND; and COMMAND echo 'Have you ran your tests?'
end
function gh
git hist
end
function gch
git checkout
end
function gch-
git checkout -m
end
#alias git log="git log --graph --decorate --oneline --all"
################################################################################
### TMUX ###
################################################################################
## tmux must be called to start a TMUX session
tmux
################################################################################
### Rails ###
################################################################################
function Rmigrate
rails g migration
end
function Rmodel
rails g model
end
function rc
rails c
end
function rs
rails s
end
function rr
rake routes
end
function be
bundle exec
end
function ka
killall ruby
end
function yolo
rake db:drop db:create db:migrate db:seed
end
function bert
bundle exec rake test
end
function rt
rake test
end
function clob
rake assets:clobber
end
function precompile
rake assets:clobber
end
################################################################################
### Rspec ###
################################################################################
function rsepc
rspec .
end
function rpsec
rspec .
end
################################################################################
### MISC ###
################################################################################
function pretty
python -mjson.tool
end
set -x TWITTER_API_KEY Vxy28GLDeTKjxHupqaL5QdAOy
set -x TWITTER_API_SECRET hxOzl9h4XFVfYGBogOeZUj96p7pRbfozD3KTnLzJ5aBzvnnsYy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment