added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
22
nyx/homes/notashelf/programs/terminal/shell/bash.nix
Normal file
22
nyx/homes/notashelf/programs/terminal/shell/bash.nix
Normal file
|
@ -0,0 +1,22 @@
|
|||
{
|
||||
programs.bash = {
|
||||
enable = false;
|
||||
enableCompletion = true;
|
||||
bashrcExtra = ''
|
||||
set -o vi
|
||||
bind -m vi-command 'Control-l: clear-screen'
|
||||
bind -m vi-insert 'Control-l: clear-screen'
|
||||
|
||||
bind 'set show-mode-in-prompt on'
|
||||
bind 'set vi-cmd-mode-string "n "'
|
||||
bind 'set vi-ins-mode-string "i "'
|
||||
|
||||
# use ctrl-z to toggle in and out of bg
|
||||
if [[ $- == *i* ]]; then
|
||||
stty susp undef
|
||||
bind -m vi-command 'Control-z: fg\015'
|
||||
bind -m vi-insert 'Control-z: fg\015'
|
||||
fi
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue