Trying shell adaptations
This commit is contained in:
+5
-11
@@ -2205,7 +2205,7 @@ The aliases mentioned in ./assets/conf/dev/terminal/shells.conf will be added to
|
||||
# shells.nix — Home-Manager module
|
||||
#
|
||||
# Reads:
|
||||
# ${flakeRoot}/assets/conf/dev/terminal/enabled_shells.conf
|
||||
# ${flakeRoot}/assets/conf/shells.nixdev/terminal/enabled_shells.conf
|
||||
# ${flakeRoot}/assets/conf/dev/terminal/aliases.conf
|
||||
#
|
||||
# For each enabled shell in [enabled_shells]:
|
||||
@@ -2293,7 +2293,6 @@ let
|
||||
zshSeed = ''
|
||||
# Created once from: ${toString aliasesFile}
|
||||
# Edit freely; Home Manager will not overwrite this file.
|
||||
#
|
||||
${secText "bash_zsh"}
|
||||
${secText "zsh_specific"}
|
||||
'';
|
||||
@@ -2329,10 +2328,8 @@ let
|
||||
# Created once from: ${toString aliasesFile}
|
||||
# Edit freely; Home Manager will not overwrite this file.
|
||||
status is-interactive; or exit
|
||||
|
||||
# Translated from [bash_zsh]:
|
||||
${fishTranslated}
|
||||
|
||||
# From [fish_specific]:
|
||||
${secText "fish_specific"}
|
||||
'';
|
||||
@@ -2373,7 +2370,6 @@ in
|
||||
# Create/remove alias files based on enabled shells
|
||||
home.activation.shellAliasesFiles = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
set -euo pipefail
|
||||
|
||||
# bash -------------------------------------------------------
|
||||
if ${if shellEnabled "bash" then "true" else "false"}; then
|
||||
cat > "${bashAliasesPath}" <<'EOF'
|
||||
@@ -2382,16 +2378,14 @@ EOF
|
||||
else
|
||||
rm -f "${bashAliasesPath}"
|
||||
fi
|
||||
|
||||
# zsh -------------------------------------------------------
|
||||
if ${if shellEnabled "zsh" then "true" else "false"}; then
|
||||
if ${if shellEnabled "zsh" then "true" else "false"}; then
|
||||
cat > "${zshAliasesPath}" <<'EOF'
|
||||
${zshSeed}
|
||||
EOF
|
||||
else
|
||||
rm -f "${zshAliasesPath}"
|
||||
fi
|
||||
|
||||
# fish -------------------------------------------------------
|
||||
if ${if shellEnabled "fish" then "true" else "false"}; then
|
||||
mkdir -p "$(dirname "${fishAliasesPath}")"
|
||||
@@ -2445,8 +2439,8 @@ in
|
||||
"docker"
|
||||
"kubectl"
|
||||
# IMPORTANT: these should be last
|
||||
"zsh-autosuggestions"
|
||||
"zsh-syntax-highlighting"
|
||||
# "zsh-autosuggestions"
|
||||
# "zsh-syntax-highlighting"
|
||||
];
|
||||
};
|
||||
'';
|
||||
@@ -2796,7 +2790,7 @@ Now starts the main emacs configuration.
|
||||
(use-package nerd-icons
|
||||
:custom
|
||||
;; disable bright icon colors
|
||||
(nerd-icons-color-icons nil))
|
||||
(nerd-icons-color-icons nil))hells.nix
|
||||
|
||||
(use-package doom-modeline
|
||||
:custom
|
||||
|
||||
@@ -24,8 +24,8 @@ in
|
||||
"docker"
|
||||
"kubectl"
|
||||
# IMPORTANT: these should be last
|
||||
"zsh-autosuggestions"
|
||||
"zsh-syntax-highlighting"
|
||||
#"zsh-autosuggestions"
|
||||
#"zsh-syntax-highlighting"
|
||||
];
|
||||
};
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user