Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

fish shell add to path

set -Ua fish_user_paths /path/to/add

# fish_user_paths is equivilent to PATH
# -U make variable univeral
# -a append variable
Comment

add path to fish

# I just installed mycoolthing and need to add it to the path to use it.
> fish_add_path /opt/mycoolthing/bin

# I want my ~/.local/bin to be checked first.
> fish_add_path -m ~/.local/bin

# I prefer using a global fish_user_paths
> fish_add_path -g ~/.local/bin ~/.otherbin /usr/local/sbin

# I want to append to the entire $PATH because this directory contains fallbacks
> fish_add_path -aP /opt/fallback/bin

# I want to add the bin/ directory of my current $PWD (say /home/nemo/)
> fish_add_path -v bin/
set fish_user_paths /home/nemo/bin /usr/bin /home/nemo/.local/bin

# I have installed ruby via homebrew
> fish_add_path /usr/local/opt/ruby/bin
Comment

fish add to path

set -gx PATH /opt/qt/Tools/QtCreator/bin /opt/qt/5.0.0/gcc_64/bin $PATH
Comment

PREVIOUS NEXT
Code Example
Shell :: get connected wifi password 
Shell :: get saved wifi password windows 10 
Shell :: how to clone my linux so all the installed packages 
Shell :: pip install geopandas 
Shell :: chmod 777 
Shell :: docker snap install 
Shell :: Remove folder recursively using powershell 
Shell :: php curl skip ssl verification 
Shell :: apt install gnome desktop 
Shell :: brew services start mongodb 
Shell :: palindrome in shell script 
Shell :: ubuntu install vboxguest 
Shell :: make git project mine 
Shell :: add all files in directory to git 
Shell :: mongodb compass community linux 
Shell :: intsalling pycharm in ubuntu 
Shell :: fatal: could not lookup name for submodule 
Shell :: reload shell command 
Shell :: copy file permission denied arch 
Shell :: increment variable in batch file 
Shell :: beautifulsoup download python 3 
Shell :: check start date of process id linux 
Shell :: ubuntu echo create file 
Shell :: install bootstrap 4 with npm 
Shell :: another-git-process-seems-to-be-running-in-this-repository 
Shell :: adb tap screen 
Shell :: git revert all local changes 
Shell :: notepad++ kali 
Shell :: bash command check 2 arguments 
Shell :: bash test boolean 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =