From 03f379aab33be1b27b07f022098fc0533a27e64b Mon Sep 17 00:00:00 2001 From: foosinn Date: Thu, 11 Jun 2020 19:38:21 +0200 Subject: [PATCH] configure editor --- roles/base.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/roles/base.nix b/roles/base.nix index d177262..cc944d0 100644 --- a/roles/base.nix +++ b/roles/base.nix @@ -22,6 +22,12 @@ programs.bash = { interactiveShellInit = '' + export EDITOR=nvim + + if [ -z "$SSH_AUTH_SOCK" ]; then + eval $(ssh-agent) + fi + pw () { len=''${1:-$(( $RANDOM % 24 + 8 ))} tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len @@ -48,7 +54,7 @@ . "$(fzf-share)/key-bindings.bash" . "$(fzf-share)/completion.bash" - eval $(z --init bash) + . <(z --init bash) ''; shellAliases = { cat = "bat -pp";