We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

PATH Config

Earlier in the course, you changed your PATH variable for your current shell session. Trouble is, the next time you restart your shell, it gets reset to its default value. You won't be able to use the worldbanc.sh CLI tool from anywhere unless you change your PATH variable permanently.

The most common way to do this is to add that same kind of export command to your shell's configuration file (the one you just edited in the previous lesson).

Instead of restarting the shell each time you change your config file, you can use the source command to reload it. source (or its short form, .) executes commands from a file in the current shell session.

Assignment

  1. nano ~/.bashrc
    # or, if you're using zsh:
    nano ~/.zshrc
    
  2. export PATH="$PATH:/absolute/path/to/worldbanc/private/bin"
    

    Use double quotes so $PATH expands to your current PATH. Single quotes would write literal $PATH instead.

  3. . ~/.bashrc
    # or:
    . ~/.zshrc
    

Answer the question.