this post was submitted on 01 Dec 2024
406 points (99.0% liked)
Bash
763 readers
7 users here now
Talk about the Bash Shell and Bash scripting
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I actually prefer fish, but I want to learn more bash because is is ubiquitous and a lot of bash stuff also works in fish.
You may also like NuShell. It's been designed from the ground up to be an intuitive and convenient shell language.
Wait, the other shells were designed to be obtuse and inconvenient? /s
Haha whoops, didn't want to imply that. I meant to say that it's intuitive for me, who finds bash syntax cryptic.
Can you tell me how to run a command and ignore an alias in NuShell? I don't really use nu but when i tried to write something in it, this was something that eluded me
Oh, if you want to avoid running a built in command like
ls
orcp
and want to run the actual thing in/usr/bin
, you prefix it with a^
, so eg^cp -p
.Interesting. What does the ^ do in this situation?
And I just want to not respect an alias, so falls back to either builtin or path.
In zsh or bash I can prefix the command with the word command, or a backslash (directly before the command)
https://www.nushell.sh/book/escaping.html
I don't know whether unsetting an alias is possible though.
https://www.nushell.sh/book/aliases.html#replacing-existing-commands-using-aliases
Fish is great! I used it for a while a long time ago but I ended up stopping because a few tools expected your shell to be set to something posix compatible. I wonder if the support is better now, I should give it a shot