configure editor
This commit is contained in:
parent
8c98e8bd14
commit
03f379aab3
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue