00:00 Intro 01:57 built in functions 02:51 count built in function 03:18 math built in function (BTW you can also scape the * when running multiplication math function: math 2\*3 an it works as expected ) 04:40 random built in function 05:20 prevd and nextd built in functions 06:20 keybindings for prevd and nextd built in functions (tldr; Alt+→ and Alt+← ) 07:32 keybinding for ls built in function (tldr; Alt + l ) 08:21 keybinding for pager (tldr; Alt + p ) 09:57 keybinding for what does that command do? (tldr; Alt + w) 10:58 keybinding to open your $EDITOR (tldr; Alt + e ) 12:10 keybinding for forgetting previous sudo command. You know, sudo make me a sandwich :) (tldr; Alt + s ) 13:00 Epilogue 13:57 Thanks Patreons!! And yes I also love fish since many years ago!! And I miss its features when I login in systems with bash shell... :)
@@DistroTube be sure to eat Fish and Chips on stream during your monthly streams :) Here's my situation for my Compaq Presario V2000 -> My old CPU has decided to kick the bucket.... And I am in the midst of acquiring a 64 bit cpu for Tresquel Linux. I have the broadcom Wlan/ bluetooth card that has FOSS compatible firmware (openfwwf)....... Can't wait to do a Tresquel/ OpenBox/ Tint2/ feh, etc combi...... for my compaq. (I went from Debian on openbox to Alpine linux on Openbox.... and now that )
I like both for different reasons, yet Fish's math builtin works quite like expr in Bash ;) Fish: math 2 + 2 # 4 Bash: expr 2 + 2 # 4 Bash: expr 2 \* 2 # Just escape the * for multiplication expr just needs space around the operator, 2 + 2 instead of 2+2
Expr is a bit too strict with its syntax, its annoying. Also, imo, where math shines, as programmers is that you can do hex math math -b 16 '2 + 10 + 0xF' (the quotes arent needed) With bash, you'd need to use printf to turn the number to hex, and $((0x__)) to use the hex literal printf '%x ' $(expr 2 + 10 + $((0xF))) Thats ugly as shit, and not easy to remember compared to how simple the fish command is
(It has been 6 years since I logged onto UA-cam to leave a comment.) Wow. Thank you. Congratulations on your work, congratulations on the CC-BY choice of this video, and I wish you a lot of good things. Finally I'm not POSIX compliant but I'm more happy.
If you write the name of a command and alt-up, it will add the arguments of your previous command to the one you're currently writing (say you ls a directory, and then want to cd there, or you cat or less a file and then want to vim or emacs it). And if you have started to write a command and only want part of the autocomplete, alt-right has you covered. Alt-delete and alt-backspace to delete word-by-word rather than character-by-character (what is often ctrl-backspace and ctrl-delete in many text editors). And, of course, the regular up-arrow history scrolling filters by what you have already written.
Fish looked pretty interesting, so I tried it out and set as my shell for a bit... then I started rewriting one of my bash scripts as a fish script, and it was an absolute pain. I gave up when I realized that there was no way to make associative arrays, short of implementing them from scratch. There was also the issue that you need use the math command to do something as simple as incrementing a variable, so something like "((x+=1))" becomes "set x (math $x + 1)", which works, but come on, seriously? My whole experience before I finally gave up rewriting the script was that a lot of things were unnecessarily verbose like that. Granted, I probably would have finished rewriting the script if at the very least fish had associative arrays, but so many lines became about twice as long, and without being that much more readable (when it wasn't less readable), that I would probably have decided it's not a good language to write scripts in anyway. Also, just to make this very clear: I absolutely need my interactive shell to have the same, or the very least very close syntax to the scripts I write. I do not want to type "x=1" when writing a script, but "set x 1" when using an interactive shell, nor do I want to have to use "$(command)" in scripts, but "(command)" in the shell, and so on and so forth. I want to do things the same way in both cases, which is why I use zsh, so I can have some of the nice features fish has, and write my scripts either in bash or as POSIX-compliant scripts. There are a lot less differences to worry about.
fish is much faster than zsh if you install all the plugins that make zsh fish-like; fish shows the prompt instantaneously, while zsh takes a visible fraction of a second
@@haomingli6175 Thing is I have no use for most things fish does, and zsh is more than fast enough for me. Regardless, speed is just not that important of a factor for me, it is well behind things like syntax and features like associative arrays and parameter expansion. "for f in *.md; do mv $f ${f%.md}.txt; done" is not something you can do in fish. I'm sure there are ways to achieve the same result, but the point is I don't want to do it any other way, I want to use this exact syntax, any other is unacceptable to me. In all seriousness, the fact that I have to type "set x 1" instead of "x=1" is more than enough reason for me to not even consider switching to fish. Yes, I am that petty.
Fish is the only shell that supports XDG properly. ZSH has ZDOTDIR, but you either have to create an extra dotfile (~/.profile, ~/.zshenv) or edit a system file (/etc/profile) to set it before the shell loads, which largely defeats the purpose of trying to force XDG compliance. Bash doesn't support XDG at all.
@@mk72v2oq Either way. Managing system file changes is not really a supported paradigm the way most people manage dotfiles. It’s something that has to be done manually or scripted, and is thus a pain in the ass fish doesn’t come with.
Been meaning to try fish, but I'm also switching over to emacs, and that's killing all the "learning" time I have lately. A look at NU shell, by JT, would be awesome aswell. He demoed a couple of times and it really brings new stuff to the terminal
Thanks for the tips DT! About the math problem with the wildcard - the standard way, at least from my understanding is to escape those characters. So math 2\*3 works as expected.
I love you so much for these tips. I was using fish without knowing prevd, nextd and especially shortcuts for these and other (like sudo) commands. My life will be so much better now. I think fish should advertise those shortcuts more.
System scripts aren't necessarily written in Bash. I know on Arch you can change it to Dash (for performance reasons). I think they are written in a low level POSIX compliant way so any shell works.
I was comparing exa and lsd today. An in depth video on them both would be great! I preferred lsd personally but you can make them relatively identical
I tried both fish and zsh for a while, then I realized I have no need for an extra shell on my system, bash is amazing all on its own. A few little modifications to suit my needs and it is good to go.
Like others, I have been using Fish since you highlighted it, but I didn't know these keybindings. The prevd/nextd bindings will revolutionize this for me. Thanks!
I am pretty happy with fish shell and made it my system default because I know i can pretty much run any bash command with bass and replay, the main problem for me was forgetting sudo, and was thinking to make some kind of alias or function that can mimic the bash style "sudo!" to run previous command with sudo priviledge. For a whole year suffered for it. now alt s, man you are my hero..
I love the fish shell, even if I have some gripes with it (all of which are circumventable, but they're just pet peeves, y'know) it still has so many creature comforts that I miss with other shells, like the mentioned history-searching autocomplete, or the mode indicator for vi bindings, small stuff like that.
Nice, really cool to learn shortcuts even tho Ive used fish for some years I did not know. Maybe new users should be aware of fish_config command. You can set a theme there an various 'config parameters in a webgui '. Set your favorite terminal to launch fish, and keep the !#/bin/bash in the scripts, not bin/sh and everything will be fine.
I've been wondering about scripting and shells. If I'm the only one using the script, why suffer through googling for the hundredth time how to get some obscure bashism to work? Why not just script with fish and be happy? I wrote hundreds of scripts on MacOS in zsh, the world didn't come to an end. And installing fish on most distros is easy-peasy. Sooooo.... fish scripting it shall be unless there is a good reason to avoid. Thanks DT for a great video!!
Yeah. Using fish for the Interactive shell, and bash for my default is what I do. It's perfect for me. I actually have a set up where I set fish as the shell for my main terminal (kitty) then I have a second one with bash like normal (right now st, but in the past alacritty)
I used bash for over 20 years... I knew other shells existed but never really paid it any mind which is crazy cuz I spend literally 90% of my time in a shell. I switched over to zsh and my mind was blown i stayed for like a year or two and kept hearing how fish was kinda like it in some ways so I was like hell i'll give it a shot. I CANNNNNNOT LIVE WITHOUT FISH lolol fish > *
Idk, zsh can be configured to do all the fish does and even more. In fact you don't even need to write configs manually, just install 'zsh + grml-zsh-config + zsh-autosuggestions + zsh-syntax-highlighting' and this setup makes fish obsolete. Not saying that you can configure any keybinding to do anything. Configurability and extensibility of zsh is effectively limitless.
I don't like messing around with configs and plugins very much although I did use tricked out zsh for a while, and my takeaway was that it's for developers who are actively programming while using it. Using it in everyday life felt more forced to me as time went on while fish felt natural pretty much immediately.
It's an old comment, but whatever. Zsh is incredibly slow and even with plugins it doesn't do what fish does out-of-the-box. Zsh-syntax-highlighting didn't even worked for me without p10k. Fish is faster, have better syntax and have a lot of features already built-in. Just the reality
Fish looks and feels amazing but I have found some bugs and also, I cannot get to properly set VIM keybinding and and Cursor styles in different modes.
I think fish or zsh is a great idea for a newb. It's quite important to learn the terminal or at least a termianl that can help you. I wish I had had someone tell me this.
Very nice highlight of the things which are important to an end user. The only thing i'm wondering about is what happens when you execute a script written in bash while running fish. Is it completely incompatible or will it launch bash temporarily?
Thank you, had no clue what fish was but kept seeing it sys tools, like so many other apps. Totally unrelated question about running a communication app ie. whats app, in a secured isolated sandbox, running garuda lxqt kwin. Someone keeps sending me a link to connect on whats app but I'm afraid of the security risks of running that app on my build & I really want to communicate with this person re: current journalism.
I love fish and using it, but I wouldn't put it on default. When new users are lost, they'll look/ask for help and they'll have command that are sometimes not compatible with fish.
If you want to save yourself the trouble of installing exa and setting up a custom ls alias for it, try typing "la" or "ll" into a vanilla fish shell :)
Well many people probably script on the fly in the interactive to make sure it works. Fish is cool, be it it can be obnoxious due to the non posix compliance
But that doesn't matter much; any (good) script should be prefaced with the correct #!-shebang anyway (indicating with which shell to run it). I think if the shebang is missing entirely, fish even assumes it's written in bash. So as long as you don't plan to completely uninstall Bash from your system (**don't**), or write scripts in Fish for other people, you won't have any problems.
I see that you use --color=always, and I wonder if you find that it interferes with piping to other commands? Less is generally fine with colors for me because I can just -r it, but if I'm grepping for something it gets a bit wonky. Also, I like the way bash does math better, $(()) and everything in between is interpreted as just math operations, complete with variables, and if a wildcard doesn't match on the command line it just accepts it as a plain string instead of throwing an error.
Fish is cool. Personally I'd rather include the fish features I want, into the more powerful zsh, which if wanted can do all and more, but to each his own.
I feel like most of the features of the special shells really should just be terminal emulator features. People dont really want Fish the language, they just want autocomplete.
Fish has a lot of stuff by defautl but everything fish can zsh and bash can too but it requires a lot of effort with bash and with zsh actually not that much
/bin/sh isn't an actual shell. /bin/sh is just a symlink to your system's default shell...which is Bash on almost every Linux distro (Ubuntu uses Dash for its system shell).
His mind is a just in time compiler I swear. He compiles new information into teaching material on the fly. He learned it? He taught it. I can't do that.
As always nothing that isn’t already possible in bash. The prevd feature is nice, though. And would require some scripting to implement in bash. Anyway no killer feature that could convince a well educated bash user.
Hey guys! How can someone contact DT other than Patreon ? I some problem wasnts featured yet.. Would be good to have a solution cuz the ArchWiki information not helped, but have to be a way to make it work... Thinkpad WWAN card to work with 4G LTE build in modem. SIM card is in, but the qualcom or which driver worked perfectly under Win10, now not wanna work under Arch.. Anyone had similar problem?
What I love about this guy is that he is respectful toward technologies that he isn't using or supports, and gets on to the point of his talks.
00:00 Intro
01:57 built in functions
02:51 count built in function
03:18 math built in function (BTW you can also scape the * when running multiplication math function: math 2\*3 an it works as expected )
04:40 random built in function
05:20 prevd and nextd built in functions
06:20 keybindings for prevd and nextd built in functions (tldr; Alt+→ and Alt+← )
07:32 keybinding for ls built in function (tldr; Alt + l )
08:21 keybinding for pager (tldr; Alt + p )
09:57 keybinding for what does that command do? (tldr; Alt + w)
10:58 keybinding to open your $EDITOR (tldr; Alt + e )
12:10 keybinding for forgetting previous sudo command. You know, sudo make me a sandwich :) (tldr; Alt + s )
13:00 Epilogue
13:57 Thanks Patreons!!
And yes I also love fish since many years ago!! And I miss its features when I login in systems with bash shell... :)
Thank you!
He’s gone Pescatarian I see.
I think I visited a Pescatarian Church once. Nice people. ;)
@@DistroTube be sure to eat Fish and Chips on stream during your monthly streams :)
Here's my situation for my Compaq Presario V2000 -> My old CPU has decided to kick the bucket.... And I am in the midst of acquiring a 64 bit cpu for Tresquel Linux. I have the broadcom Wlan/ bluetooth card that has FOSS compatible firmware (openfwwf)....... Can't wait to do a Tresquel/ OpenBox/ Tint2/ feh, etc combi...... for my compaq.
(I went from Debian on openbox to Alpine linux on Openbox.... and now that )
I love the fish shell since starting to use it a few months ago. I didn’t realize a lot of these tips and tricks. This is awesome.
I like both for different reasons, yet Fish's math builtin works quite like expr in Bash ;)
Fish: math 2 + 2 # 4
Bash: expr 2 + 2 # 4
Bash: expr 2 \* 2 # Just escape the * for multiplication
expr just needs space around the operator, 2 + 2 instead of 2+2
Expr is a bit too strict with its syntax, its annoying.
Also, imo, where math shines, as programmers is that you can do hex math
math -b 16 '2 + 10 + 0xF'
(the quotes arent needed)
With bash, you'd need to use printf to turn the number to hex, and $((0x__)) to use the hex literal
printf '%x
' $(expr 2 + 10 + $((0xF)))
Thats ugly as shit, and not easy to remember compared to how simple the fish command is
(It has been 6 years since I logged onto UA-cam to leave a comment.)
Wow. Thank you. Congratulations on your work, congratulations on the CC-BY choice of this video, and I wish you a lot of good things. Finally I'm not POSIX compliant but I'm more happy.
I've been using fish since last year, thanks to your videos! fish + starship = beyond best.
If you write the name of a command and alt-up, it will add the arguments of your previous command to the one you're currently writing (say you ls a directory, and then want to cd there, or you cat or less a file and then want to vim or emacs it).
And if you have started to write a command and only want part of the autocomplete, alt-right has you covered.
Alt-delete and alt-backspace to delete word-by-word rather than character-by-character (what is often ctrl-backspace and ctrl-delete in many text editors).
And, of course, the regular up-arrow history scrolling filters by what you have already written.
Fish looked pretty interesting, so I tried it out and set as my shell for a bit... then I started rewriting one of my bash scripts as a fish script, and it was an absolute pain. I gave up when I realized that there was no way to make associative arrays, short of implementing them from scratch. There was also the issue that you need use the math command to do something as simple as incrementing a variable, so something like "((x+=1))" becomes "set x (math $x + 1)", which works, but come on, seriously?
My whole experience before I finally gave up rewriting the script was that a lot of things were unnecessarily verbose like that. Granted, I probably would have finished rewriting the script if at the very least fish had associative arrays, but so many lines became about twice as long, and without being that much more readable (when it wasn't less readable), that I would probably have decided it's not a good language to write scripts in anyway.
Also, just to make this very clear: I absolutely need my interactive shell to have the same, or the very least very close syntax to the scripts I write. I do not want to type "x=1" when writing a script, but "set x 1" when using an interactive shell, nor do I want to have to use "$(command)" in scripts, but "(command)" in the shell, and so on and so forth. I want to do things the same way in both cases, which is why I use zsh, so I can have some of the nice features fish has, and write my scripts either in bash or as POSIX-compliant scripts. There are a lot less differences to worry about.
fish is much faster than zsh if you install all the plugins that make zsh fish-like; fish shows the prompt instantaneously, while zsh takes a visible fraction of a second
@@haomingli6175 Thing is I have no use for most things fish does, and zsh is more than fast enough for me.
Regardless, speed is just not that important of a factor for me, it is well behind things like syntax and features like associative arrays and parameter expansion. "for f in *.md; do mv $f ${f%.md}.txt; done" is not something you can do in fish. I'm sure there are ways to achieve the same result, but the point is I don't want to do it any other way, I want to use this exact syntax, any other is unacceptable to me.
In all seriousness, the fact that I have to type "set x 1" instead of "x=1" is more than enough reason for me to not even consider switching to fish. Yes, I am that petty.
@@QuotePilgrim ya i use fish cuz i like the simple config setup but i agree that the POSIX compatibility issue can be a dealbreaker
Man, the prevd and nextd keybindings made my morning :D. The Alt+s is also noice!
Fish is the only shell that supports XDG properly. ZSH has ZDOTDIR, but you either have to create an extra dotfile (~/.profile, ~/.zshenv) or edit a system file (/etc/profile) to set it before the shell loads, which largely defeats the purpose of trying to force XDG compliance. Bash doesn't support XDG at all.
Zsh has its own system-wide /etc/zsh/zshenv. But yeah, automatic XDG would've been nice.
Btw DT has a video against XDG.
@@mk72v2oq Either way. Managing system file changes is not really a supported paradigm the way most people manage dotfiles. It’s something that has to be done manually or scripted, and is thus a pain in the ass fish doesn’t come with.
@@praetorxyn out-of-the-box XDG is better, but zsh is about configs anyway. Fish is essentially zsh + proper config.
The nice to haves like directory switching and autocomplete have been fantastic for me but the sudo trick is truly amazing.
Been meaning to try fish, but I'm also switching over to emacs, and that's killing all the "learning" time I have lately.
A look at NU shell, by JT, would be awesome aswell. He demoed a couple of times and it really brings new stuff to the terminal
Thanks for the tips DT! About the math problem with the wildcard - the standard way, at least from my understanding is to escape those characters. So math 2\*3 works as expected.
I love you so much for these tips. I was using fish without knowing prevd, nextd and especially shortcuts for these and other (like sudo) commands. My life will be so much better now. I think fish should advertise those shortcuts more.
zsh used to be my favorite back in early 2000s. I haven’t run Linux for over a decade, but glad to hear it’s still around.
System scripts aren't necessarily written in Bash. I know on Arch you can change it to Dash (for performance reasons). I think they are written in a low level POSIX compliant way so any shell works.
But Fish is not 100% POSIX compliant (on purpose)
I was comparing exa and lsd today. An in depth video on them both would be great! I preferred lsd personally but you can make them relatively identical
I prefer mushrooms
@@owainharris It depends on the ocassion
@@owainharris lmao
Thanks for the tips! I've been using fish for quite some time along with oh my fish, but I haven't taken a deep dive into the shortcut keys yet.
Yeah I can't imagine going back to bash after fish. It's like going back in time but in a bad way. And you're the reason I use fish! So thank you!
Maybe I missed it, but what theme is being used for Fish? I really like it. Are there any other customizations done to it?
I tried both fish and zsh for a while, then I realized I have no need for an extra shell on my system, bash is amazing all on its own. A few little modifications to suit my needs and it is good to go.
what about the syntax highlighting? isn't that a pain to live without?
@occultsupport not at all, syntax highlighting is nice but not having it is not a deal breaker for me.
Fish is so awesome out of the box that I use it in both my android and ubuntu. The omf framework also made it nicely customizable
Like others, I have been using Fish since you highlighted it, but I didn't know these keybindings. The prevd/nextd bindings will revolutionize this for me. Thanks!
I am pretty happy with fish shell and made it my system default because I know i can pretty much run any bash command with bass and replay, the main problem for me was forgetting sudo, and was thinking to make some kind of alias or function that can mimic the bash style "sudo!" to run previous command with sudo priviledge. For a whole year suffered for it. now alt s, man you are my hero..
Fish is my go to shell
I love the fish shell, even if I have some gripes with it (all of which are circumventable, but they're just pet peeves, y'know) it still has so many creature comforts that I miss with other shells, like the mentioned history-searching autocomplete, or the mode indicator for vi bindings, small stuff like that.
Nice, really cool to learn shortcuts even tho Ive used fish for some years I did not know. Maybe new users should be aware of fish_config command. You can set a theme there an various 'config parameters in a webgui '. Set your favorite terminal to launch fish, and keep the !#/bin/bash in the scripts, not bin/sh and everything will be fine.
My favourite shell. Using it for few years now
I use emacs all day at a large tech company and I do it in the terminal. No GUI active. Yes, it has both modes these days.
I've been wondering about scripting and shells. If I'm the only one using the script, why suffer through googling for the hundredth time how to get some obscure bashism to work? Why not just script with fish and be happy? I wrote hundreds of scripts on MacOS in zsh, the world didn't come to an end. And installing fish on most distros is easy-peasy. Sooooo.... fish scripting it shall be unless there is a good reason to avoid. Thanks DT for a great video!!
Yeah. Using fish for the Interactive shell, and bash for my default is what I do. It's perfect for me.
I actually have a set up where I set fish as the shell for my main terminal (kitty) then I have a second one with bash like normal (right now st, but in the past alacritty)
The Bourne Again Shell (Bash) is the best ever and I love it.
I used bash for over 20 years... I knew other shells existed but never really paid it any mind which is crazy cuz I spend literally 90% of my time in a shell. I switched over to zsh and my mind was blown i stayed for like a year or two and kept hearing how fish was kinda like it in some ways so I was like hell i'll give it a shot. I CANNNNNNOT LIVE WITHOUT FISH lolol fish > *
Zsh with some additions easily make fish obsolete.
@@mk72v2oq What would some of those additions be?
@@tiagok1842 grml-zsh-config + zsh-autosuggestions + zsh-syntax-highlighting
@@mk72v2oqzsh with those additions is slow, painful to maintain and shit to use Frankenstein's monster.
GhostBSD uses fish by default for the user shell.
Hey dt, can you make a review on wezterm? It is written in rust and config is in lua and has many builtin feature
I think the abbreviation function is neat as well. I prefer it to aliases because it will always print the original command to the terminal.
How do you change your termianl prompt's to ">"?
Idk, zsh can be configured to do all the fish does and even more. In fact you don't even need to write configs manually, just install 'zsh + grml-zsh-config + zsh-autosuggestions + zsh-syntax-highlighting' and this setup makes fish obsolete. Not saying that you can configure any keybinding to do anything. Configurability and extensibility of zsh is effectively limitless.
I don't like messing around with configs and plugins very much although I did use tricked out zsh for a while, and my takeaway was that it's for developers who are actively programming while using it. Using it in everyday life felt more forced to me as time went on while fish felt natural pretty much immediately.
It's an old comment, but whatever. Zsh is incredibly slow and even with plugins it doesn't do what fish does out-of-the-box. Zsh-syntax-highlighting didn't even worked for me without p10k.
Fish is faster, have better syntax and have a lot of features already built-in. Just the reality
Is piping cat to less any different from passing the file as an argument to less?
those keybindings are great thanks for tell us.
how can i get my command line text to be colored like that? i dont mean the prompt
Fish looks and feels amazing but I have found some bugs and also, I cannot get to properly set VIM keybinding and and Cursor styles in different modes.
Hey DT, would love to see a video on using bash getopts.
Nice vid. What font is that in the terminal?
Thanks for making this video, fish is awesome!!
Great content man,
12:46 fish doesn't have sudo !!
Now I know why and the workaround.
I think fish or zsh is a great idea for a newb. It's quite important to learn the terminal or at least a termianl that can help you. I wish I had had someone tell me this.
Very nice highlight of the things which are important to an end user. The only thing i'm wondering about is what happens when you execute a script written in bash while running fish. Is it completely incompatible or will it launch bash temporarily?
Incompatible. You can always /bin/bash before running it of you really need to run it.
Thank you, had no clue what fish was but kept seeing it sys tools, like so many other apps. Totally unrelated question about running a communication app ie. whats app, in a secured isolated sandbox, running garuda lxqt kwin. Someone keeps sending me a link to connect on whats app but I'm afraid of the security risks of running that app on my
build & I really want to communicate with this person re: current journalism.
For math, you can also just quote the whole line to make it easier - especially if you had * more than once, e.g. ~>math "55*(9*17)+8"
Hey dt do you have your config for fish shell? It looks good I'd like to try it
Hey DT why are you still using 'cd' ? I move around my entire file system with 3 letters thanks to zoxide.
Fish is an even bigger win for scripting than for interactive
Fork the Fish Shell, put your spin on it, and call it "Dish". Winning...
no no, call it "Chips" instead - then we'll have "Fish" and "Chips" 😄
i have moved to fish after watching this video. I had no clue as the difference between an interactive shell and system shell
Underrated use case for fish: Devices with touchscreen be it android, postmarketos or a Surface device
All 5 of them
@@alterego157 ?
@@Neucher how do you use a shell on android?
anyone know how to write on more than one monitor in dtos sometime I open more than one server and I wanna type the same command
Try kitty.
I love fish and using it, but I wouldn't put it on default.
When new users are lost, they'll look/ask for help and they'll have command that are sometimes not compatible with fish.
If you want to save yourself the trouble of installing exa and setting up a custom ls alias for it, try typing "la" or "ll" into a vanilla fish shell :)
This video should have been titled fish and tips
Well many people probably script on the fly in the interactive to make sure it works. Fish is cool, be it it can be obnoxious due to the non posix compliance
Very useful, thanks so much!
Been using fish shell ever since I started using linux! Only gripe I have is how it's not compatible with bash scripts
But that doesn't matter much; any (good) script should be prefaced with the correct #!-shebang anyway (indicating with which shell to run it). I think if the shebang is missing entirely, fish even assumes it's written in bash.
So as long as you don't plan to completely uninstall Bash from your system (**don't**), or write scripts in Fish for other people, you won't have any problems.
for now I launch fish to exploer a new command, got so many prosthetics in bash already that it's not much appealing ;)
alias --save is my favorite
I see that you use --color=always, and I wonder if you find that it interferes with piping to other commands? Less is generally fine with colors for me because I can just -r it, but if I'm grepping for something it gets a bit wonky. Also, I like the way bash does math better, $(()) and everything in between is interpreted as just math operations, complete with variables, and if a wildcard doesn't match on the command line it just accepts it as a plain string instead of throwing an error.
Fish is cool. Personally I'd rather include the fish features I want, into the more powerful zsh, which if wanted can do all and more, but to each his own.
Kali also comes with Zsh out of the box.
I haven't watched the video all the way through but I think my shell can do all that stuff. I will come back to confirm tho
For the math function you can also escape the * with \ (e.g. math 2\*3) but I'll admit that it's still a bit clunky :)
fish + thefuck. love 'em both, and have 'em on any system I set up now.
I feel like most of the features of the special shells really should just be terminal emulator features. People dont really want Fish the language, they just want autocomplete.
Since I've found fish I've put it on all my Macs
You can type $EDITOR to open the default editor in fish.
Hey DT, how's openSUSE tumbleweed ?
I used Emacs a user shell, but that wasn't that great experience, as many scripts back then didn't have the hash-bang line in the beginning. 🙂😎
Best thing is you don't has to 'cd' everytime. 😁
the only reason I watch DT is "Let me switch over to my desktop"
Fish has a lot of stuff by defautl but everything fish can zsh and bash can too but it requires a lot of effort with bash and with zsh actually not that much
The default shell on Linux is /bin/sh
/bin/sh isn't an actual shell. /bin/sh is just a symlink to your system's default shell...which is Bash on almost every Linux distro (Ubuntu uses Dash for its system shell).
@@DistroTube I know, it was a joke because one of your older videos talking exactly about this.^^ I have set it to Dash.
Alt S ------------>> amazing
His mind is a just in time compiler I swear. He compiles new information into teaching material on the fly. He learned it? He taught it. I can't do that.
As always nothing that isn’t already possible in bash. The prevd feature is nice, though. And would require some scripting to implement in bash. Anyway no killer feature that could convince a well educated bash user.
Amen to fish!
I use fish shell scripts for my d&d campaign, lmao
Hey guys! How can someone contact DT other than Patreon ? I some problem wasnts featured yet.. Would be good to have a solution cuz the ArchWiki information not helped, but have to be a way to make it work...
Thinkpad WWAN card to work with 4G LTE build in modem. SIM card is in, but the qualcom or which driver worked perfectly under Win10, now not wanna work under Arch.. Anyone had similar problem?
Second (Maybe)
My shell indeed does that. I use Fish btw
fish + tillix is boss
try typing 'fish_config' in your fish shell...see what happens
Builtins are not the same thing as functions
best shell is ash
I must try the 0/0 and see my distro crash and burn
👍👍
Are you pulling our leg?
I think I prefer the keybinds for zsh a bit more
Fish is too slow , it drives me crazy. I tried to force myself away from bash but I cant
GVDT.