Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. linuxmemes
  3. Fish rules
Welcome to Caint!

Issues? Post in Comments & Feedback
You can now view, reply, and favourite posts from the Fediverse. You can click here or click on the on the navigation bar on the left.

Fish rules

Scheduled Pinned Locked Moved linuxmemes
fish
43 Posts 29 Posters 2 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S somerandomperson@lemmy.dbzer0.com

    The fuck is an abbreviation? Is it a knock-off alias?

    dreadbeef@lemmy.dbzer0.comD This user is from outside of this forum
    dreadbeef@lemmy.dbzer0.comD This user is from outside of this forum
    dreadbeef@lemmy.dbzer0.com
    wrote last edited by dreadbeef@lemmy.dbzer0.com
    #25

    basically a text expansion. I have g=git, so when I type “g push” after I hit space after g, it expands it to git in the terminal as if i just typed out git myself. My history doesnt show “g push” it shows “git push” before I push enter

    https://fishshell.com/docs/current/cmds/abbr.html

    F 1 Reply Last reply
    5
    • RmDebArc_5R RmDebArc_5

      fish, the friendly interactive shell, is a commandline shell intended to be interactive and user-friendly.

      fish is intentionally not fully POSIX compliant, it aims at addressing POSIX inconsistencies (as perceived by the creators) with a simplified or a different syntax. This means that even simple POSIX compliant scripts may require some significant adaptation or even full rewriting to run with fish.

      Source

      A This user is from outside of this forum
      A This user is from outside of this forum
      acockworkorange@mander.xyz
      wrote last edited by
      #26

      POSIX shell sucks ass. Just because there are many worse options doesn’t make it any better.

      J 1 Reply Last reply
      2
      • RmDebArc_5R RmDebArc_5

        fish, the friendly interactive shell, is a commandline shell intended to be interactive and user-friendly.

        fish is intentionally not fully POSIX compliant, it aims at addressing POSIX inconsistencies (as perceived by the creators) with a simplified or a different syntax. This means that even simple POSIX compliant scripts may require some significant adaptation or even full rewriting to run with fish.

        Source

        B This user is from outside of this forum
        B This user is from outside of this forum
        bitwolf
        wrote last edited by
        #27

        #!/bin/sh #!/bin/bash?

        T 1 Reply Last reply
        7
        • A acockworkorange@mander.xyz

          POSIX shell sucks ass. Just because there are many worse options doesn’t make it any better.

          J This user is from outside of this forum
          J This user is from outside of this forum
          unalivejoy
          wrote last edited by
          #28

          I love my bash-isms.

          1 Reply Last reply
          2
          • M marafon@sh.itjust.works

            I just switched to fish for the pretty colors and quality of life features. Anything I should keep in mind while using it as a Linux noob? I don’t even know who POSIX is lol.

            N This user is from outside of this forum
            N This user is from outside of this forum
            nalivai@lemmy.world
            wrote last edited by
            #29

            zsh with oh-my-zsh addon can do the same amount of pretty colours and qol stuff, with the addition of being POSIX compliant. Not that fish is bad or anything, but you don’t want additional troubles with random incompatibility on top of the usual learning curve.

            1 Reply Last reply
            3
            • Hellfire103H Hellfire103

              Nah, fuck that. I’m using yash.

              J This user is from outside of this forum
              J This user is from outside of this forum
              jankatarch@lemmy.world
              wrote last edited by
              #30

              Chaotic lawful.

              1 Reply Last reply
              1
              • B bitwolf

                #!/bin/sh #!/bin/bash?

                T This user is from outside of this forum
                T This user is from outside of this forum
                thevoidzero@lemmy.world
                wrote last edited by
                #31

                Then you’re just running bash scripts with bash. You’re not running bash scripts with fish.

                alecsargent@lemmy.zipA 1 Reply Last reply
                2
                • RmDebArc_5R RmDebArc_5

                  fish, the friendly interactive shell, is a commandline shell intended to be interactive and user-friendly.

                  fish is intentionally not fully POSIX compliant, it aims at addressing POSIX inconsistencies (as perceived by the creators) with a simplified or a different syntax. This means that even simple POSIX compliant scripts may require some significant adaptation or even full rewriting to run with fish.

                  Source

                  G This user is from outside of this forum
                  G This user is from outside of this forum
                  gonzako@lemmy.world
                  wrote last edited by
                  #32

                  It’s installed on my machine but really don’t know how to make use of it that much. Any tips and tricksters?

                  kurallier@programming.devK 1 Reply Last reply
                  2
                  • C CubitOom

                    Switching to dash

                    G This user is from outside of this forum
                    G This user is from outside of this forum
                    gonzako@lemmy.world
                    wrote last edited by
                    #33

                    I’d rather use cash

                    1 Reply Last reply
                    1
                    • T thevoidzero@lemmy.world

                      Then you’re just running bash scripts with bash. You’re not running bash scripts with fish.

                      alecsargent@lemmy.zipA This user is from outside of this forum
                      alecsargent@lemmy.zipA This user is from outside of this forum
                      alecsargent@lemmy.zip
                      wrote last edited by
                      #34

                      I think that’s the point of the comment

                      B 1 Reply Last reply
                      5
                      • Kilgore TroutK Kilgore Trout

                        Ask the maintainer to push the update to Factory.

                        woelkchen@lemmy.worldW This user is from outside of this forum
                        woelkchen@lemmy.worldW This user is from outside of this forum
                        woelkchen@lemmy.world
                        wrote last edited by
                        #35

                        Maybe later

                        1 Reply Last reply
                        1
                        • dreadbeef@lemmy.dbzer0.comD dreadbeef@lemmy.dbzer0.com

                          basically a text expansion. I have g=git, so when I type “g push” after I hit space after g, it expands it to git in the terminal as if i just typed out git myself. My history doesnt show “g push” it shows “git push” before I push enter

                          https://fishshell.com/docs/current/cmds/abbr.html

                          F This user is from outside of this forum
                          F This user is from outside of this forum
                          fleet@lemmy.ca
                          wrote last edited by
                          #36

                          Been using fish for years and did not know this.

                          1 Reply Last reply
                          0
                          • G gonzako@lemmy.world

                            It’s installed on my machine but really don’t know how to make use of it that much. Any tips and tricksters?

                            kurallier@programming.devK This user is from outside of this forum
                            kurallier@programming.devK This user is from outside of this forum
                            kurallier@programming.dev
                            wrote last edited by kurallier@programming.dev
                            #37

                            While using the fish shell you can just type ‘help’, and it’ll pull up an offline web page with their manuals and guides. But to be honest, I dont really use fish for anything but the fancy colors and auto-completion lol.
                            Also fish 🐟 🙂

                            G 1 Reply Last reply
                            2
                            • kurallier@programming.devK kurallier@programming.dev

                              While using the fish shell you can just type ‘help’, and it’ll pull up an offline web page with their manuals and guides. But to be honest, I dont really use fish for anything but the fancy colors and auto-completion lol.
                              Also fish 🐟 🙂

                              G This user is from outside of this forum
                              G This user is from outside of this forum
                              gonzako@lemmy.world
                              wrote last edited by
                              #38

                              oh yeah! the autocompletion seems great

                              1 Reply Last reply
                              1
                              • alecsargent@lemmy.zipA alecsargent@lemmy.zip

                                I think that’s the point of the comment

                                B This user is from outside of this forum
                                B This user is from outside of this forum
                                bitwolf
                                wrote last edited by bitwolf@sh.itjust.works
                                #39

                                Exactly, use the shell you like (nushell in my case), write POSIX scripts for maintainability, and use shebangs so you don’t have to think about it.

                                If you like fish but don’t use it as your login shell because it’s not POSIX you’re missing the point of the shebang

                                1 Reply Last reply
                                1
                                • tal@lemmy.todayT tal@lemmy.today

                                  I have no shell configs of any kind because it seemed like everytime I used another computer, I would not have them and I would end up having the re-learn everything.

                                  What I do is store my dotfiles in a git repository, and leave symlinks to the files in that repository. Then, when I move to another computer, pulling over all my configuration consists of doing a git pull to pull the git repo over and then running a command to set up the symlinks on that new computer. I can also make changes and selectively push things in. Some things need to be specific to a computer, and those don’t go in.

                                  I use a homebrew script to set up the symlinks. A number of people use GNU stow for this.

                                  kagis for an example of someone using stow

                                  https://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html?round=two

                                  If you edit the symlinks in emacs (and I imagine vim), it picks up on the fact that they’re symlinks into a git repository and that they’re version-controlled.

                                  So, like:

                                  • Have a bare git repository on home machine, the “master” copy.

                                  • Every machine with an account has a non-bare dotfiles git repository checked out and symlinks pointing into that repo.

                                  • Make any changes on a given machine like you normally would, then git commit them to the local non-bare dotfiles git repo and push them to the master repository.

                                  • If setting up on a new machine, pull the git repository, and then run the command to set up the symlinks.___

                                  I This user is from outside of this forum
                                  I This user is from outside of this forum
                                  interdimensionalmeme@lemmy.ml
                                  wrote last edited by
                                  #40

                                  That does sound like a good plan and I do have my own git server but
                                  Can I expect to be able to do this in the various work shells I come across ?
                                  Or do I risk becoming afoul of IT security ?(especially as it is not practical to ask each of them)

                                  tal@lemmy.todayT 1 Reply Last reply
                                  1
                                  • I interdimensionalmeme@lemmy.ml

                                    That does sound like a good plan and I do have my own git server but
                                    Can I expect to be able to do this in the various work shells I come across ?
                                    Or do I risk becoming afoul of IT security ?(especially as it is not practical to ask each of them)

                                    tal@lemmy.todayT This user is from outside of this forum
                                    tal@lemmy.todayT This user is from outside of this forum
                                    tal@lemmy.today
                                    wrote last edited by
                                    #41

                                    I mean, that’s not a question I can answer for you. I have never had a problem, myself, but I have no idea what your professional situation is. There are a shit-ton of ways to move git repositories around. If you can ssh out, if you can move physical storage in and out, if you have https out (though that’ll be unidirectional in). I doubt that a typical IT department is going to care about you moving your dotfiles in, so if they do block something, probably worth a try just saying “I just want to pull my dotfiles from home; what’s a good way to do that?” My guess is that most IT departments aren’t going to have an issue with that. If you work for an intelligence service or something that has really super-stringent security requirements, then having any data movement in or out may be more of a headache.

                                    I would be careful to avoid sticking credentials (keys, passwords, anything like that) in any git-managed dotfiles. Not an issue for most software, but there are a few packages that will do that (neonmodem, a BBS-themed console Linux Lemmy client, does that…was just trying it yesterday.) You don’t want to be dumping your home credentials all over in your git history, and work isn’t going to want you pushing work credentials out.

                                    1 Reply Last reply
                                    0
                                    • D dreugeworst@lemmy.ml

                                      using nushell is my little rebellion against POSIX tyranny

                                      M This user is from outside of this forum
                                      M This user is from outside of this forum
                                      mariusafa@lemmy.sdf.org
                                      wrote last edited by
                                      #42

                                      POSIX tryanny? Lmao

                                      1 Reply Last reply
                                      0
                                      • RmDebArc_5R RmDebArc_5

                                        fish, the friendly interactive shell, is a commandline shell intended to be interactive and user-friendly.

                                        fish is intentionally not fully POSIX compliant, it aims at addressing POSIX inconsistencies (as perceived by the creators) with a simplified or a different syntax. This means that even simple POSIX compliant scripts may require some significant adaptation or even full rewriting to run with fish.

                                        Source

                                        E This user is from outside of this forum
                                        E This user is from outside of this forum
                                        eestileib@lemmy.blahaj.zone
                                        wrote last edited by
                                        #43

                                        I’m sorry I can’t hear you over my eshell

                                        1 Reply Last reply
                                        0
                                        Reply
                                        • Reply as topic
                                        Log in to reply
                                        • Oldest to Newest
                                        • Newest to Oldest
                                        • Most Votes


                                        • Login

                                        • Don't have an account? Register

                                        • Login or register to search.
                                        • First post
                                          Last post
                                        0
                                        • Categories
                                        • Recent
                                        • Tags
                                        • All Topics
                                        • Popular
                                        • World
                                        • Users
                                        • Groups