Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fish Interactive Shell full path

Is there a way in the Fish Interactive shell for the full path to be displayed. Currently when I navigate to a directory I get the following shell.

millermj@Dodore ~/o/workspace 

but I would rather see

millermj@Dodore ~/o-town/workspace 
like image 711
Milhous Avatar asked May 15 '09 04:05

Milhous


People also ask

How do you set the PATH variable in fish shell?

It does this by adding the components either to $fish_user_paths or directly to $PATH (if the --path switch is given). It is (by default) safe to use fish_add_path in config. fish, or it can be used once, interactively, and the paths will stay in future because of universal variables.

How do I run a fish shell script?

To be able to run fish scripts from your terminal, you have to do two things. Add the following shebang line to the top of your script file: #!/usr/bin/env fish . Mark the file as executable using the following command: chmod +x <YOUR_FISH_SCRIPT_FILENAME> .


1 Answers

With the new fishshell (v2.3) you can do set -U fish_prompt_pwd_dir_length 0. And it will use the full path. I also use dartfish for my theme. See example below:

enter image description here

like image 159
Amir Raminfar Avatar answered Nov 05 '22 19:11

Amir Raminfar