configure editor

This commit is contained in:
foosinn 2020-06-11 19:38:21 +02:00
parent 8c98e8bd14
commit 03f379aab3

View file

@ -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";