
Creating Functions In The Fish Shell DistroTube
video description
Date: 2022-03-30
Related videos
Comments and reviews: 9
Bruno
Hello! Just saw the config.fish on GitLab. According to the documentation, you should run the command 'set -U fish_user_paths $fish_user_paths $HOME/.local/bin/' only once and in the terminal. Explanation from the fish official site follows: -The advantage is that you don't have to go mucking around in files: just run this once at the command line, and it will affect the current session and all future instances too. (Note: you should NOT add this line to config.fish. If you do, the variable will get longer each time you run fish!)-.
Thank you Derek, for all the interesting videos!
Best regards to you and to all the community.
reply
Hello! Just saw the config.fish on GitLab. According to the documentation, you should run the command 'set -U fish_user_paths $fish_user_paths $HOME/.local/bin/' only once and in the terminal. Explanation from the fish official site follows: -The advantage is that you don't have to go mucking around in files: just run this once at the command line, and it will affect the current session and all future instances too. (Note: you should NOT add this line to config.fish. If you do, the variable will get longer each time you run fish!)-.
Thank you Derek, for all the interesting videos!
Best regards to you and to all the community.
reply
Faerryn
Fish has a unique way of setting variables that stick around in your config - you use the set -U to set a 'universal' variable, and the variable will appear in -/.config/fish/fish_variables .
So instead of editing config.fish, you could run the command:
set -U VARIABLE value
and it will stick around for all subsequent shells.
I for one want nothing to do with this method, however, since it puts the variables in unreadable escaped form in -/.config/fish/fish_variables .
Fish does advertise this features, however, so it might serve somebody well!
reply
Fish has a unique way of setting variables that stick around in your config - you use the set -U to set a 'universal' variable, and the variable will appear in -/.config/fish/fish_variables .
So instead of editing config.fish, you could run the command:
set -U VARIABLE value
and it will stick around for all subsequent shells.
I for one want nothing to do with this method, however, since it puts the variables in unreadable escaped form in -/.config/fish/fish_variables .
Fish does advertise this features, however, so it might serve somebody well!
reply
Eric
What i would like is, a usb key i can put in a pc which give me a
replica of my main pc, i have 5 diff pc at home and want 1 machine host
and all the rest slave, either on harddrive (laptop 3) or small factor
no hd, usb key only, sata problem... local os but with my home and / all
sync up . running mint 20, any idea
reply
What i would like is, a usb key i can put in a pc which give me a
replica of my main pc, i have 5 diff pc at home and want 1 machine host
and all the rest slave, either on harddrive (laptop 3) or small factor
no hd, usb key only, sata problem... local os but with my home and / all
sync up . running mint 20, any idea
reply
Maxime
Thank for the video DT!
I was thinking, you are putting all you functions in your config.fish . Maybe it would be cleaner to put every function in a different file in .config/fish/function ? (I find the idea of having a folder for all the functions nice)
reply
Thank for the video DT!
I was thinking, you are putting all you functions in your config.fish . Maybe it would be cleaner to put every function in a different file in .config/fish/function ? (I find the idea of having a folder for all the functions nice)
reply
Manu
I have a couple questions:
What do you use to edit the config file for fish? I am using text edit on mac and it works but its not ideal.
What is the package that allows you to see your ram usage, cpu usage, etc on the top of your terminal?
Thanks
reply
I have a couple questions:
What do you use to edit the config file for fish? I am using text edit on mac and it works but its not ideal.
What is the package that allows you to see your ram usage, cpu usage, etc on the top of your terminal?
Thanks
reply
Tom
I like fish but it garbles my characters and altgr fonts, while in bash, in the same alacritty terminal everything is ok... It looks like there is a different font in fish than in alacritty (which is rather impossible)
Any ideas?
reply
I like fish but it garbles my characters and altgr fonts, while in bash, in the same alacritty terminal everything is ok... It looks like there is a different font in fish than in alacritty (which is rather impossible)
Any ideas?
reply
Netropy
Actually, I strongly recommend Fisher. It's minimal and fast plugin manager. You can use plugin from any GitHub repo, and also you can sync your plugins by syncing your fish_plugins file containing all of your plugins.
reply
Actually, I strongly recommend Fisher. It's minimal and fast plugin manager. You can use plugin from any GitHub repo, and also you can sync your plugins by syncing your fish_plugins file containing all of your plugins.
reply
Tanay
The link to you website isn-t working. I tried it in firefox and safari, through the hyperlink and with duckduckgo and nothing worked. If I click one of sublinks, like contact, it works. Just a heads up.
reply
The link to you website isn-t working. I tried it in firefox and safari, through the hyperlink and with duckduckgo and nothing worked. If I click one of sublinks, like contact, it works. Just a heads up.
reply
Terminalforlife
I'm still not seeing why one should use fish over bash. I might check it out tomorrow, maybe do a video on it. I'd be interested in programming using fish. Awesome video as always, btw.
reply
I'm still not seeing why one should use fish over bash. I might check it out tomorrow, maybe do a video on it. I'd be interested in programming using fish. Awesome video as always, btw.
reply
Add a review, comment















