VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
Creating Functions In The Fish Shell DistroTube

Creating Functions In The Fish Shell DistroTube

FBTwitterReddit

video description

Rating: 4.5; Vote: 2
Creating Functions In The Fish Shell DistroTube I will briefly go over some of the settings that I have in my Fish configuration file (config.fish). I will also discuss some cool functions that you can add to your config. And everything I do here is done without using oh-my-fish. - https://gitlab.com/dwt1/dotfiles/-/blob/master/.config/fish/config.fish - DT's config.fish - https://github.com/isacikgoz/sashimi - Sashimi prompt - https://github.com/jorgebucaran/spark.fish - Spark.fish - https://github.com/oh-my-fish/plugin-bang-bang - The Bang Bang plugin - https://github.com/razzius/fish-functions - Razzius's Fish Functions Jaykstah: Started using fish the other day and right away it felt homey. Never used anything other than bash, so for me it's very refreshing. Definitely gonna have to spend some time tonight messing around with configuration and seeing what i can pull off with the info in this vid.
Date: 2022-03-30

Comments and reviews: 9


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

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

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

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

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 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

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

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

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






Other channel videos