Last active
September 15, 2015 03:16
-
-
Save BigHeadCreations/3abf739af89fca6428ef to your computer and use it in GitHub Desktop.
Fish config file
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
| ########## | |
| ## Aliases | |
| ########## | |
| # General aliases | |
| alias ll="ls -lah" | |
| alias www="cd /Applications/MAMP/htdocs/" | |
| alias sshfc="ssh [email protected]" | |
| alias sshrack="ssh [email protected]" | |
| alias web="cd /Applications/MAMP/htdocs/webpower-ce" | |
| alias klg="cd /Applications/MAMP/htdocs/klg-frontend" | |
| # Git aliases | |
| alias gs="git status" | |
| alias gb="git branch" | |
| alias gba="git branch -a" | |
| alias gl="git log --oneline" | |
| alias gdt="git diff > tmpDiff.txt | subl tmpDiff.txt" | |
| alias rmt="rm tmpDiff.txt" | |
| alias gsl="git stash list" | |
| alias gco="git checkout" | |
| #################################### | |
| ## Set up the prompt ## | |
| #################################### | |
| set -xg fish_color_user magenta | |
| set -xg fish_color_host yellow | |
| function fish_prompt --description 'Write out the prompt' | |
| set -l last_status $status | |
| # User | |
| set_color $fish_color_user | |
| echo -n (whoami) | |
| set_color normal | |
| echo -n '@' | |
| # Host | |
| set_color $fish_color_host | |
| echo -n (hostname -s) | |
| set_color normal | |
| echo -n ':' | |
| # PWD | |
| set_color $fish_color_cwd | |
| echo -n (pwd) | |
| set_color normal | |
| __terlar_git_prompt | |
| echo | |
| if not test $last_status -eq 0 | |
| set_color $fish_color_error | |
| end | |
| echo -n '➤ ' | |
| set_color normal | |
| end | |
| ###### | |
| # Homebrew cask options | |
| ##### | |
| set -x HOMEBREW_CASK_OPTS="--appdir=/Applications" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment