move bash config to configuration.ix and add devenv hook
This commit is contained in:
parent
b156f81901
commit
1fdebac787
2 changed files with 5 additions and 7 deletions
|
|
@ -64,11 +64,16 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.bash = {
|
programs.bash = {
|
||||||
|
completion.enable = true;
|
||||||
|
shellAliases = {
|
||||||
|
"rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure";
|
||||||
|
};
|
||||||
promptInit = ''
|
promptInit = ''
|
||||||
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] '
|
||||||
'';
|
'';
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
complete -F _command doas
|
complete -F _command doas
|
||||||
|
eval "$(devenv hook bash)"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
|
|
|
||||||
|
|
@ -57,13 +57,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.bash = {
|
|
||||||
enable = true;
|
|
||||||
enableCompletion = true;
|
|
||||||
shellAliases = {
|
|
||||||
"rebuild" = "doas nixos-rebuild switch --flake $HOME/nixos/ --impure";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
programs.google-chrome.enable = true;
|
programs.google-chrome.enable = true;
|
||||||
programs.foot = {
|
programs.foot = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue