Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to add Android SDK tools to my $PATH variable. I've entered the following to ~/.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 is not loaded when I open another tab. Any help?

share|improve this question
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:

share|improve this answer

Your Answer


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.