configs  Check-in [ab536054ec]

Overview
Comment:pw(s).fish: Fix key path
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ab536054eccd05a70055e6ce1fb53154f694397df674ce37d5968ca3a147fd7d
User & Date: js 2020-02-28 01:05:50
Context
2020-02-29
23:06
cross.fish: Add mingw32 check-in: db08e8e6d4 user: js tags: trunk
2020-02-28
01:05
pw(s).fish: Fix key path check-in: ab536054ec user: js tags: trunk
01:02
zshrc: Fix gpg-* aliases, add mpv alias check-in: 85778c1c83 user: js tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to fish/functions/pw.fish.

1
2
3
4
5
6
7
8
9
10
11
12
13
function pw
    set -l clipboard
    if type -q pbcopy
        set clipboard pbcopy
    else if type -q xclip
        set clipboard xclip
    else
        echo "No clipboard handler found!"
        return 1
    end

    cryptopassphrase -k ~/.scrypt-pwgen.key $argv | tr -d '\n' | $clipboard
end











|

1
2
3
4
5
6
7
8
9
10
11
12
13
function pw
    set -l clipboard
    if type -q pbcopy
        set clipboard pbcopy
    else if type -q xclip
        set clipboard xclip
    else
        echo "No clipboard handler found!"
        return 1
    end

    cryptopassphrase -k ~/.cryptopassphrase.key $argv | tr -d '\n' | $clipboard
end

Changes to fish/functions/pws.fish.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function pws
    set -l clipboard
    if type -q pbcopy
        set clipboard pbcopy
    else if type -q xclip
        set clipboard xclip
    else
        echo "No clipboard handler found!"
        return 1
    end

    cryptopassphrase -k ~/.scrypt-pwgen-server.key $argv \
        | tr -d '\n' | $clipboard
end











|


1
2
3
4
5
6
7
8
9
10
11
12
13
14
function pws
    set -l clipboard
    if type -q pbcopy
        set clipboard pbcopy
    else if type -q xclip
        set clipboard xclip
    else
        echo "No clipboard handler found!"
        return 1
    end

    cryptopassphrase -k ~/.cryptopassphrase-server.key $argv \
        | tr -d '\n' | $clipboard
end