the lemmy.monster
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 5 months ago

bash tricks

sh.itjust.works

message-square
37
fedilink
351

bash tricks

sh.itjust.works

zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 5 months ago
message-square
37
fedilink
  • SubArcticTundra@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    5 months ago

    You may also like NuShell. It’s been designed from the ground up to be an intuitive and convenient shell language.

    • Albbi@lemmy.ca
      link
      fedilink
      English
      arrow-up
      5
      ·
      5 months ago

      Wait, the other shells were designed to be obtuse and inconvenient? /s

      • SubArcticTundra@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        5 months ago

        Haha whoops, didn’t want to imply that. I meant to say that it’s intuitive for me, who finds bash syntax cryptic.

    • ziggurat@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      5 months ago

      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

      • SubArcticTundra@lemmy.ml
        link
        fedilink
        English
        arrow-up
        4
        ·
        5 months ago

        Oh, if you want to avoid running a built in command like ls or cp and want to run the actual thing in /usr/bin, you prefix it with a ^, so eg ^cp -p.

        • ziggurat@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          edit-2
          5 months ago

          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)

          • SubArcticTundra@lemmy.ml
            link
            fedilink
            English
            arrow-up
            1
            ·
            5 months ago

            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

Bash@lemmy.ml

bash@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Talk about the Bash Shell and Bash scripting

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1 user / day
  • 1 user / week
  • 9 users / month
  • 458 users / 6 months
  • 1 local subscriber
  • 892 subscribers
  • 36 Posts
  • 49 Comments
  • Modlog
  • mods:
  • Elsie@lemmy.ml
  • Wronnay@lemmy.ml
  • BE: 0.19.7
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org