aboutsummaryrefslogtreecommitdiffstats
path: root/fish/.config/fish/config.fish
blob: c5e074372153b9ff63d73d5c64f0bf0ad8bd878a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function latestqr -d "Return the string corresponding to the latest QR code."
  ls -aS $HOME/Desktop | tail -n1 | tr \\n \\0 | xargs -0 -I% zbarimg --raw -q $HOME/Desktop/%
end

function ll; ls -lah $argv; end
function vim; nvim $argv; end
function ccd; mkdir -p -- $argv; cd -- $argv; end

if status is-interactive
    set -x GPG_TTY (tty)
    gpgconf --launch gpg-agent
    direnv hook fish | source
end