diff options
| author | beeb5k <beebeeb5k@gmail.com> | 2026-06-07 12:29:22 +0530 |
|---|---|---|
| committer | beeb5k <beebeeb5k@gmail.com> | 2026-06-07 12:29:22 +0530 |
| commit | 20d922e7984ad22964f31a1a3fe3377ed23d4c4a (patch) | |
| tree | 0d7413a7ffbd90905d34e4ceb60febe8a0f656a3 /hosts/common.nix | |
| parent | 267ea5a480555b3cf621bf4e76a6726f3592436a (diff) | |
Bash is what god intended us to use
Diffstat (limited to 'hosts/common.nix')
| -rw-r--r-- | hosts/common.nix | 57 |
1 files changed, 4 insertions, 53 deletions
diff --git a/hosts/common.nix b/hosts/common.nix index 016bfc9..884e0f5 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -150,13 +150,12 @@ # }; fonts.fontDir.enable = true; - fonts.packages = [ + fonts.packages = with pkgs; [ inputs.self.packages.${pkgs.system}.iosevka-input - pkgs.nerd-fonts.symbols-only - pkgs.noto-fonts - pkgs.noto-fonts-cjk-sans-static + nerd-fonts.symbols-only + noto-fonts + noto-fonts-cjk-sans-static # nerd-fonts.jetbrains-mono - # maple-mono.NF ]; fonts.fontconfig.defaultFonts.monospace = [ @@ -165,54 +164,6 @@ "Symbols Nerd Font" ]; - programs.bash = { - enable = true; - interactiveShellInit = '' - # --- History Configuration --- - # HISTSIZE: Number of lines to keep in memory - # HISTFILESIZE: Number of lines to keep in the file - export HISTSIZE=5000 - export HISTFILESIZE=5000 - export HISTFILE="$HOME/.bash_history" - - # Append to history file rather than overwriting - shopt -s histappend - - # Ignore commands starting with space - export HISTCONTROL=ignorespace:erasedups - - # --- Completion Configuration --- - # Bash completion is usually handled by the 'bash-completion' package - # Ensure it is enabled in your nixos config: programs.bash.completion.enable = true; - bind "set completion-ignore-case on" - bind "set show-all-if-ambiguous on" - - # Correct way to enable menu-complete: - # bind '"\t": menu-complete' - bind '"\e[Z": menu-complete-backward' - - bind "set show-all-if-ambiguous on" - ''; - promptInit = '' - if [ "$TERM" != "dumb" ] || [ -n "$INSIDE_EMACS" ]; then - # Removed the '1;' prefix to disable bold - PROMPT_COLOR="31m" - ((UID)) && PROMPT_COLOR="32m" - - # Removed \n (newline) and [ ] brackets - if [ -n "$INSIDE_EMACS" ]; then - PS1="\[\033[$PROMPT_COLOR\]\u@\h:\w\\$\[\033[0m\] " - else - # PS1="\[\033[$PROMPT_COLOR\]\[\e]0;\u@\h: \w\a\]\u@\h:\w\\$\[\033[0m\] " - PS1="\[\e[38;5;75m\]\u@\h \[\e[38;5;113m\]\w \[\e[38;5;189m\]\$ \[\e[0m\]" - fi - - if test "$TERM" = "xterm"; then - PS1="\[\033]2;\h:\u:\w\007\]$PS1" - fi - fi - ''; - }; programs.nano.enable = false; programs.gnupg.agent = { enable = true; |
