Compare commits

...

3 commits

Author SHA1 Message Date
649a11f68d
utvpn 2024-10-30 14:32:18 -05:00
3fe88f4632
cleanup 2024-10-30 14:32:13 -05:00
b19e02bc6c
gpg is my ssh-agent now 2024-10-22 10:53:48 -05:00
4 changed files with 10 additions and 4 deletions

View file

@ -46,3 +46,6 @@ alias micromamba-fhs="nix-shell -E 'with import <nixpkgs> {}; (pkgs.buildFHSUser
alias fhs="nix-shell -E 'with import <nixpkgs> {}; (pkgs.buildFHSUserEnv {name = \"micromamba-fhs\"; runScript=\"zsh\";}).env'"
# https://discourse.nixos.org/t/why-is-it-so-hard-to-use-a-python-package/19200/20
# alias fhs="nix shell --impure --expr '((builtins.getFlake \"nixpkgs\").legacyPackages.\${builtins.currentSystem}.buildFHSUserEnv { name = \"fhs\"; runScript=\"zsh\"; }).env'"
alias utvpn-tmux="tmux new-session -d -s vpn 'utvpn' && tmux attach -t vpn"

View file

@ -2,3 +2,10 @@
export GPG_TTY="$TTY"
gpgconf --launch gpg-agent
# have gpg-agent be the ssh-agent
# idea taken from https://wiki.archlinux.org/title/GnuPG#SSH_agent
if [[ -z "${SSH_CONNECTION}" ]]; then
export SSH_AGENT_PID=""
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
fi

View file

@ -1,3 +0,0 @@
is-tty && alias lsd="lsd --icon never"
alias ls="lsd --group-directories-first --color=auto -g"
alias lt='lsd --tree --depth=3'