Initial commit
This commit is contained in:
45
modules/global/bash.nix
Normal file
45
modules/global/bash.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ config, pkgs, ... }: {
|
||||
globals.hm.programs.carapace = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
globals.hm.programs.bash = {
|
||||
enable = true;
|
||||
shellAliases = config.n.misc.aliases;
|
||||
enableCompletion = true;
|
||||
|
||||
initExtra = ''
|
||||
#colorscript -e square
|
||||
_fix_cursor() {
|
||||
echo -ne '\e[5 q'
|
||||
}
|
||||
precmd_functions+=(_fix_cursor)
|
||||
export TERM="xterm-256color"
|
||||
PS1="\e[1;32m\u@\h\e[m \e[1;34m[\t]\e[m [\w]\n\e[0;34m-> %\e[m \e[0;32m"
|
||||
'';
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
wget
|
||||
curl
|
||||
tree
|
||||
htop
|
||||
killall
|
||||
jq
|
||||
p7zip
|
||||
tldr
|
||||
unzip
|
||||
mtr
|
||||
iperf3
|
||||
lsd
|
||||
bat
|
||||
ncdu
|
||||
ripgrep
|
||||
dig
|
||||
pwgen
|
||||
inxi
|
||||
alejandra
|
||||
tokei
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user