pretty-please 0.1.0

The polite sudo.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub const INIT: &str = r#"function pls --description 'Re-run the previous command with sudo'
    if test (count $argv) -eq 0
        set -l previous (history --max=1)

        if test -z (string trim -- $previous)
            command pls --history-command "$previous"
            return $status
        end

        eval "command pls $previous"
    else
        command pls $argv
    end
end
"#;