Creating Functions In The Fish Shell

Creating Functions In The Fish Shell

DistroTube

4 года назад

41,355 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@yves415
@yves415 - 22.03.2024 16:29

so meaningful

Ответить
@Tegatreides
@Tegatreides - 14.01.2023 21:26

hi dt thanks for all the content. i checked your repo and i could fix the clear alias cause it sent me an error that using the alias name inside the alias would create an infinite loop. thank for your repos. btw have u find a way to make ctrl+L follow the alias?

Ответить
@tridibbiswas3361
@tridibbiswas3361 - 07.12.2022 20:58

Hi, thank you for the video. I finally made the switch from zsh to fish today. In my zsh shell I had a .curlrc file in my $HOME dir. Though it’s still there when I am using fish it doesn’t seem to source the .curlrc file. Is there any particular way I need to do this.

Ответить
@theterri
@theterri - 21.08.2022 04:37

I can't make it work on Arch. I can't logon when I use fish. I need to use tty2, change it to zsh or bash and then I can logon :(

Ответить
@TutoDS2014
@TutoDS2014 - 11.08.2022 09:58

Anyway to change to folder without cd like zsh?

Ответить
@thingsiplay
@thingsiplay - 31.12.2020 17:16

Why do you add so many functions and bloat, just to get "!!" functionality? You can always use the arrow key "up" to get the last commands.

Ответить
@thengakola6217
@thengakola6217 - 29.12.2020 12:05

You ripped off the fish functions and didn't even give stars to that guy ..... feels bad

Ответить
@toequantumspace
@toequantumspace - 26.12.2020 23:38

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?

Ответить
@WolfDaniel
@WolfDaniel - 16.12.2020 01:37

Consider removing the -U option from fish_user_paths variable as universal is not meant to be used in config files. Each time you run fish, it appends to your path.

Ответить
@gordonchan4801
@gordonchan4801 - 12.12.2020 15:27

take 5

Ответить
@ManuRedd
@ManuRedd - 09.12.2020 11:18

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

Ответить
@WolfDaniel
@WolfDaniel - 05.12.2020 12:48

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.

Ответить
@Vegemeister1
@Vegemeister1 - 22.11.2020 03:14

That coln function seems to be spawning a new awk process for every single line. Faster on large files to pipe directly to awk:

function coln
awk '{print $'$argv[1]'}'
end

Ответить
@Flackon
@Flackon - 06.11.2020 02:15

Pretty neat. I'll have to dig deeper into fish and see if it's worth replacing zsh with it.

One of the deal breakers is not being compatible with bash script...

Ответить
@wmgilliland2582
@wmgilliland2582 - 05.11.2020 04:52

Dude you have a voice made for Radio.

Ответить
@nicholasficara1017
@nicholasficara1017 - 04.11.2020 16:57

DT you are nuts. Every time I learn something in linux, you make a video the day after. THAT DAMN WELCOME MESSAGE

Ответить
@iainearl6669
@iainearl6669 - 04.11.2020 11:58

DT should do a video on the starship prompt!

Ответить
@bahathir_
@bahathir_ - 04.11.2020 10:23

the skip function is simillar to

$ tail +5.bashrc

The take function is similar to

$ head -5 .bashrc

Thank you.

Ответить
@faizanahmad5464
@faizanahmad5464 - 04.11.2020 09:48

Hey how do you get those pretty colors and stuff when you launch your terminal? It looks really pretty

Ответить
@sublevel123
@sublevel123 - 04.11.2020 05:42

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

Ответить
@xtnctr
@xtnctr - 04.11.2020 04:59

Fish is better indeed.

Ответить
@stm3252
@stm3252 - 04.11.2020 04:14

Hi DT, I have a non-related question. I've read the RTFM, but I can't find a way to bind a key to a specific layout in Qtile (example: mod +shift +m switch the layout to Xmonadtall ...)? Thanks

Ответить
@akshatvats7992
@akshatvats7992 - 04.11.2020 03:37

Cool hoody, that!

Ответить
@CrustyAbsconder
@CrustyAbsconder - 04.11.2020 02:25

GhostBSD uses Fish Shell. I am having trouble getting GhostBSD to work smoothly on my 2020 hardware

Ответить
@sage5578
@sage5578 - 04.11.2020 02:23

Wait, DT also represents the intials of your name.

Ответить
@samuelschwager
@samuelschwager - 04.11.2020 01:28

Neat stuff!

Ответить
@jwc865
@jwc865 - 04.11.2020 01:25

In normal mode how do I change the command mode from colon to semicolon In Spacevim

I looked up the documentation but I wasn’t able to figure it out

Ответить
@craterface12
@craterface12 - 04.11.2020 01:20

Thank you for telling us about suppressing the greeting message! It is super annoying.

Ответить
@mohammedzeglam6811
@mohammedzeglam6811 - 04.11.2020 01:04

Hi dt , if you wont alias clear work with arguments remove equal sign and qoution marks that works with me when i create my fish config but with another programs

Ответить
@matthewevan5314
@matthewevan5314 - 04.11.2020 01:02

Too late my big brain already ported my 32 Bash functions to Fish. Work faster next time DT ;)

Ответить
@tandeshmukh
@tandeshmukh - 04.11.2020 01:01

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.

Ответить
@mohammedzeglam6811
@mohammedzeglam6811 - 04.11.2020 00:54

yesterday i installed fish shell

Ответить
@jaykstah
@jaykstah - 04.11.2020 00:53

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.

Ответить
@TheGruselmops
@TheGruselmops - 04.11.2020 00:36

yesterdays DT: There are to many script kiddies out there
todays DT: I'm literally a script kiddie

Ответить
@patrickmclaughlin6013
@patrickmclaughlin6013 - 04.11.2020 00:33

So how do I install this Oh My Fish thing?
fedora 31 dreading the upgrade to 33

Ответить
@Sound_.-Safari
@Sound_.-Safari - 04.11.2020 00:31

You should check out scuba the fish plug-in manager

Ответить
@AwesomeMediaify
@AwesomeMediaify - 04.11.2020 00:28

Just what i needed. Good timing DT

Ответить
@marioschroers7318
@marioschroers7318 - 04.11.2020 00:21

Using zsh, and likewise, I never used Oh My zsh. You can configure pretty much anything yourself without any such framework.

Ответить
@apestogetherstrong341
@apestogetherstrong341 - 04.11.2020 00:14

yo tf dislikes from? 3 like to 2 dislikes?

Ответить
@reesericdotci
@reesericdotci - 04.11.2020 00:13

I love fish, and I need this vid! Thx, DT!

Ответить