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 = {
|
programs.bash = {
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
|
export EDITOR=nvim
|
||||||
|
|
||||||
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||||
|
eval $(ssh-agent)
|
||||||
|
fi
|
||||||
|
|
||||||
pw () {
|
pw () {
|
||||||
len=''${1:-$(( $RANDOM % 24 + 8 ))}
|
len=''${1:-$(( $RANDOM % 24 + 8 ))}
|
||||||
tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len
|
tr -dc a-zA-Z0-9 < /dev/urandom | head -c $len
|
||||||
|
@ -48,7 +54,7 @@
|
||||||
|
|
||||||
. "$(fzf-share)/key-bindings.bash"
|
. "$(fzf-share)/key-bindings.bash"
|
||||||
. "$(fzf-share)/completion.bash"
|
. "$(fzf-share)/completion.bash"
|
||||||
eval $(z --init bash)
|
. <(z --init bash)
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
cat = "bat -pp";
|
cat = "bat -pp";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue