zshrc moved to nix conf
Some checks are pending
🏠 Home Lab CI/CD Pipeline / 🔍 Validate Configuration (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🔨 Build Configurations (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔒 Security Audit (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📚 Documentation & Modules (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔄 Update Dependencies (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🚀 Deploy Configuration (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📢 Notify Results (push) Blocked by required conditions
Some checks are pending
🏠 Home Lab CI/CD Pipeline / 🔍 Validate Configuration (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🔨 Build Configurations (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔒 Security Audit (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📚 Documentation & Modules (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 🔄 Update Dependencies (push) Waiting to run
🏠 Home Lab CI/CD Pipeline / 🚀 Deploy Configuration (push) Blocked by required conditions
🏠 Home Lab CI/CD Pipeline / 📢 Notify Results (push) Blocked by required conditions
This commit is contained in:
parent
61a50dad27
commit
0efcfba0b3
3 changed files with 62 additions and 16 deletions
|
@ -61,6 +61,7 @@
|
|||
buildInputs = with nixpkgs.legacyPackages.${system}; [
|
||||
nixd
|
||||
alejandra
|
||||
nixpkgs-fmt
|
||||
git
|
||||
emacs
|
||||
];
|
||||
|
@ -81,6 +82,8 @@
|
|||
emacs
|
||||
pandoc
|
||||
starship
|
||||
nixpkgs-fmt
|
||||
alejandra
|
||||
];
|
||||
shellHook = ''
|
||||
echo "Literate dotfiles development environment"
|
||||
|
|
|
@ -101,8 +101,12 @@
|
|||
GIT_EDITOR = "emacs";
|
||||
};
|
||||
|
||||
# Geir-specific shell configuration
|
||||
programs.zsh.shellAliases = {
|
||||
# Comprehensive zsh configuration for geir
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
|
||||
# Shell aliases
|
||||
shellAliases = {
|
||||
# Development workflow
|
||||
"lab" = "cd /home/geir/Home-lab";
|
||||
"configs" = "cd /home/geir/Home-lab/user_configs/geir";
|
||||
|
@ -119,4 +123,32 @@
|
|||
# Media shortcuts
|
||||
"youtube-dl" = "yt-dlp";
|
||||
};
|
||||
|
||||
# History configuration
|
||||
histSize = 10000;
|
||||
histFile = "$HOME/.histfile";
|
||||
|
||||
# Shell options
|
||||
setOptions = [ "autocd" "extendedglob" ];
|
||||
|
||||
# Interactive shell initialization
|
||||
interactiveShellInit = ''
|
||||
# Emacs-style keybindings
|
||||
bindkey -e
|
||||
|
||||
# Disable annoying shell options
|
||||
unsetopt beep nomatch
|
||||
|
||||
# Completion configuration
|
||||
zstyle ':completion:*' completer _expand _complete _ignored
|
||||
zstyle ':completion:*' matcher-list ""
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
|
||||
# Initialize shell enhancements
|
||||
eval "$(starship init zsh)"
|
||||
eval "$(direnv hook zsh)"
|
||||
eval "$(zoxide init zsh)"
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -234,7 +234,18 @@ exec gammastep
|
|||
|
||||
* Zsh
|
||||
|
||||
Configuration for zsh.
|
||||
Configuration for zsh is now managed by NixOS configuration in `/home/geir/Home-lab/modules/users/geir.nix`.
|
||||
|
||||
The zsh configuration includes:
|
||||
- History settings (10000 entries)
|
||||
- Shell options (autocd, extendedglob)
|
||||
- Completion system
|
||||
- Emacs-style keybindings
|
||||
- Shell enhancements (starship, direnv, zoxide)
|
||||
- Fun startup message with fortune and cowsay
|
||||
|
||||
#+BEGIN_COMMENT
|
||||
Previous zsh configuration moved to NixOS - keeping for reference:
|
||||
|
||||
#+BEGIN_SRC shell :tangle /home/geir/.config/zsh/.zshrc
|
||||
|
||||
|
@ -257,8 +268,8 @@ eval "$(zoxide init zsh)"
|
|||
|
||||
fortune -s | cowsay -f dragon | clolcat
|
||||
|
||||
|
||||
#+END_SRC
|
||||
#+END_COMMENT
|
||||
|
||||
* Git
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue