Fedora-OSTree-Setup-dev / Fedora-OSTree-Setup

Glorified scipt that automates the setup of Fedora Silverblue/Kinoite based on given config file.
GNU General Public License v3.0
7 stars 3 forks source link

basic customization for fish #58

Open iaacornus opened 1 year ago

boredsquirrel commented 1 year ago

Here are some configs

boredsquirrel commented 1 year ago

restore "sudo !!" command in fish (You could just use Alt+S instead)

printf """

# restore "sudo !!"
function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo."
    if test "$argv" = !!
        echo sudo $history[1]
        eval command sudo $history[1]
    else
        command sudo $argv
    end
end""" >> ~/.config/fish/config.fish
iaacornus commented 1 year ago

restore "sudo !!" command in fish (You could just use Alt+S instead)

printf """

# restore "sudo !!"
function sudo --description "Replacement for Bash 'sudo !!' command to run last command using sudo."
    if test "$argv" = !!
        echo sudo $history[1]
        eval command sudo $history[1]
    else
        command sudo $argv
    end
end""" >> ~/.config/fish/config.fish

i'm not well aware of the sudo !! command

boredsquirrel commented 1 year ago

This is not nessecary. Alt+s does exactly that but better. fish is actually really awesome, thanks for the suggestion! and you can install it in all distroboxes too and use it there!