-
-
Save anonymous/18ff3b8e39fc47eb8644 to your computer and use it in GitHub Desktop.
This file contains 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
#alias | |
alias vi=vim | |
#PS1 | |
export PS1="\[\e[00;34m\]\u\[\e[0m\]\[\e[00;37m\]:@\[\e[0m\]\[\e[00;36m\]\W\[\e[0m\]\[\e[00;37m\]\\$\[\e[0m\]" | |
### Added by the Heroku Toolbelt | |
export GOROOT=`go env GOROOT` | |
export GOBIN=$GOROOT/bin/ | |
export GOTOOLS=$GOROOT/pkg/tool/ | |
export GOPATH=$HOME/src/go | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
export PATH=$PATH:"/usr/local/bin:/usr/local/heroku/bin:$PATH" | |
export KKDAI=$GOPATH/src/github.com/kkdai | |
#alias for golang debugging with GDB | |
alias god="go build -gcflags '-N -l'" | |
alias godrun="go build -gcflags '-N -l' -o debug && gdb debug" | |
#docker setting | |
#eval "$(docker-machine env default)" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
Any suggestion about
export GOROOT=`go env GOROOT`
I change to
set -x GOROOT `go env GOROOT`
But it not work.
set -x GOROOT (go env GOROOT)
So,
` `
in fish is basically
( )
Thank you. Now I can
chsh -s /usr/local/bin/fish
👍
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#1
Convert aliases into functions to opt in fish autoloading, tl;dr alias is slow, functions are fast.
For example:
#2
For
export
, useset -x
For example:
#3
In fish we use
fish_prompt
, a function, to customize our prompts. PS1 and all that monstrosity is not needed in fish. This is a good thing unless you are into heavy S/M 😆#4
Instead of
You could write