Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to add Android SDK tools to my $PATH variable. I've entered the following to ~/.config/fish/config.fish:

set -x PATH $PWD/Documents/android-sdk-macosx/tools $PATH

set -x PATH $PWD/Documents/android-sdk-macosx/platform-tools $PATH

It works in the initial window when I start TotalTerminal, but when I open another tab (with Cmd+T), the path is not set, as if config.fish is not loaded when I open another tab. Any help?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You're almost there. Replace $PWD with $HOME so that fish will look for the android tools relative to your homefolder instead of the current folder you're browsing. Correct lines should therefore be:

set -x PATH $HOME/Documents/android-sdk-macosx/tools $PATH
set -x PATH $HOME/Documents/android-sdk-macosx/platform-tools $PATH

You could also declare the scope to be global by adding a g to the -x parameter.

For more info on the syntax for set, please look at the fish man-page: http://ridiculousfish.com/shell/user_doc/html/commands.html#set

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.