Last active
August 29, 2015 14:06
-
-
Save Epigene/f0c3754b1dac4a2da7a4 to your computer and use it in GitHub Desktop.
Server ~/.config/fish/config.fish
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
# Be sure to change <appname> and <dbname> to real values | |
# Path to your oh-my-fish. | |
set fish_path $HOME/.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/ | |
Theme 'robbyrussell' | |
Plugin 'theme' | |
set -g -x fish_greeting '' | |
echo -e "Proceed to \033[38;5;208mfishy\033[0;00m business!" | |
# ============ | |
# config files | |
alias opsh="command nano ~/.config/fish/config.fish" | |
alias again=". ~/.config/fish/config.fish" | |
alias app="cd ~/apps/<appname>" | |
alias co!="cd ~/apps/<appname>/current; and bundle exec rails c -e production" | |
alias logs="cd /home/deployer/apps/<appname>/shared/log" | |
# commands | |
alias dumpit="pg_dump --format=c -h localhost --username creative <dbname> > latest.dump" | |
alias keys="cd /home/deployer/.ssh/" | |
alias to_nginx="cd /etc/nginx" | |
alias lookup="command ps aux | grep" | |
alias ls="command ls -ABC --color" | |
alias get="sudo apt-get -y install" | |
alias superclean="sudo apt-get remove --purge" | |
alias better="sudo apt-get update; and sudo apt-get upgrade -y" | |
# prints given string given times `do_str = 8` | |
function do_str | |
for i in (seq $argv[2]) | |
printf $argv[1] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment