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 :: gitlab gitignore not working 
Shell :: update surge project 
Shell :: tor mac not connected 
Shell :: create a tar with folder content only 
Shell :: bash if user exists in a group then add 
Shell :: python rioxarray install 
Shell :: nmap run scripts 
Shell :: remove xcode archives 
Shell :: programming tools fedora 
Shell :: What command can you type to perform a system state backup? 
Shell :: ntp not starting after reboot 
Shell :: cat command 
Shell :: ubuntu check usb connections 
Shell :: sublime merge editor git 
Shell :: how to delete a git branch locally and remotely 
Shell :: Install DatadogRum 
Shell :: kubectl 
Shell :: break a symbolic link in linux 
Shell :: virtualbox extension pack linux 
Shell :: turn off wiregurad linux 
Shell :: set up minimize,maximize,close button on left side ubuntu 
Shell :: how to install software in linux terminal 
Shell :: using scp with ssh with server credentials 
Shell :: enter passphrase is asking for password 
Shell :: install stremio ubuntu 20.04 
Shell :: Error: serverless-domain-manager: Plugin configuration is missing. 
Shell :: unix timestamp bash 
Shell :: bash regex match space 
Shell :: Comparing Actual Changes Between Two Branches 
Shell :: linux which command 
ADD CONTENT
Topic
Content
Source link
Name
3+1 =