β² 1114 βΌ Feels more polite for sure. (sh.itjust.works) submitted 5 months ago by Lisk91@sh.itjust.works to c/linuxmemes@lemmy.world 93 comments fedilink hide all child comments
[β] andallthat@lemmy.world 13 points 5 months ago (1 child) I was surprised to find that my distro (CachyOS) already has this alias permalink fedilink source hideshow 2 child comments replies: [β] Alaknar@sopuli.xyz 8 points 5 months ago (3 children) I always preferred the version where please="sudo !!", but I recently tried setting it up and couldn't get it to work on fish, sadly. permalink fedilink source parent hideshow 6 child comments replies: [β] 69420@lemmy.world 3 points 5 months ago alias please='sudo $(fc -ln -1)' permalink fedilink source parent [β] KorYi@lemmy.ml 2 points 5 months ago I remember setting this up with zsh and it didn't work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )= permalink fedilink source parent [β] andallthat@lemmy.world 1 point 5 months ago* (last edited 5 months ago) I'm a new windows emigrant, so I don't have that muscle memory.... so I am getting used more easily to using fish's ALT+S to sudo the previous command. EDIT: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang permalink fedilink source parent
[β] Alaknar@sopuli.xyz 8 points 5 months ago (3 children) I always preferred the version where please="sudo !!", but I recently tried setting it up and couldn't get it to work on fish, sadly. permalink fedilink source parent hideshow 6 child comments replies: [β] 69420@lemmy.world 3 points 5 months ago alias please='sudo $(fc -ln -1)' permalink fedilink source parent [β] KorYi@lemmy.ml 2 points 5 months ago I remember setting this up with zsh and it didn't work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )= permalink fedilink source parent [β] andallthat@lemmy.world 1 point 5 months ago* (last edited 5 months ago) I'm a new windows emigrant, so I don't have that muscle memory.... so I am getting used more easily to using fish's ALT+S to sudo the previous command. EDIT: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang permalink fedilink source parent
[β] 69420@lemmy.world 3 points 5 months ago alias please='sudo $(fc -ln -1)' permalink fedilink source parent
[β] KorYi@lemmy.ml 2 points 5 months ago I remember setting this up with zsh and it didn't work either. IIRC I had to use history to access the last command but it failed in some cases so I stopped using it altogether )= permalink fedilink source parent
[β] andallthat@lemmy.world 1 point 5 months ago* (last edited 5 months ago) I'm a new windows emigrant, so I don't have that muscle memory.... so I am getting used more easily to using fish's ALT+S to sudo the previous command. EDIT: @Alaknar@sopuli.xyz I just checked that !! works too for me, apparently because of this: https://github.com/oh-my-fish/plugin-bang-bang permalink fedilink source parent