SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 6 个月前

bash tricks

sh.itjust.works

message-square
37
fedilink
418

bash tricks

sh.itjust.works

zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 6 个月前
message-square
37
fedilink
  • SubArcticTundra@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    6 个月前

    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
      ·
      6 个月前

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

      • SubArcticTundra@lemmy.ml
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        6 个月前

        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
      ·
      6 个月前

      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
        ·
        6 个月前

        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
          6 个月前

          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
            ·
            6 个月前

            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: !bash@lemmy.ml

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
  • 2 users / month
  • 46 users / 6 months
  • 9 local subscribers
  • 918 subscribers
  • 36 Posts
  • 116 Comments
  • Modlog
  • mods:
  • Elsie@lemmy.ml
  • Wronnay@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org