The Meissner's
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 1 year ago

bash tricks

sh.itjust.works

external-link
message-square
15
fedilink
79
external-link

bash tricks

sh.itjust.works

zarkanian@sh.itjust.works to Bash@lemmy.mlEnglish · 1 year ago
message-square
15
fedilink
  • SubArcticTundra@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 year ago

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

    • ziggurat@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year 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
        3
        ·
        1 year 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
          1 year 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
            ·
            1 year 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: !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
  • 1 user / month
  • 1 user / 6 months
  • 0 local subscribers
  • 779 subscribers
  • 27 Posts
  • 16 Comments
  • Modlog
  • mods:
  • Elsie@lemmy.ml
  • Wronnay@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org