aboutsummaryrefslogtreecommitdiff
path: root/modules/home/shells/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'modules/home/shells/zsh')
-rw-r--r--modules/home/shells/zsh/default.nix72
1 files changed, 0 insertions, 72 deletions
diff --git a/modules/home/shells/zsh/default.nix b/modules/home/shells/zsh/default.nix
deleted file mode 100644
index 5da67c9..0000000
--- a/modules/home/shells/zsh/default.nix
+++ /dev/null
@@ -1,72 +0,0 @@
-{
- config,
- pkgs,
- lib,
- ...
-}:
-
-let
- inherit (lib) mkEnableOption mkIf;
- cfg = config.nx.shells.zsh;
-in
-{
- options.nx.shells.zsh = {
- enable = mkEnableOption "zsh shell";
- };
-
- config = mkIf cfg.enable {
- home.packages = with pkgs; [
- zoxide
- ];
-
- programs.zsh = {
- enable = true;
- enableCompletion = true;
- autosuggestion.enable = true;
- syntaxHighlighting.enable = true;
- initContent = ''
- # view man pages with nvim
- export MANPAGER="nvim +Man!"
-
- # Directory completion with trailing slash
- zstyle ':completion:*' list-dirs-first true
- zstyle ':completion:*' special-dirs true
- zstyle ':completion:*' squeeze-slashes true
- zstyle ':completion:*' add-space false
-
- # Case-insensitive completion
- zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
- # vim keybindings
- bindkey -v
-
- # Auto cd - type directory name to cd into it
- setopt AUTO_CD
-
- # Complete .. to ../ for directory navigation
- setopt AUTO_PARAM_SLASH
-
- # zoxide smarter cmd command
- eval "$(zoxide init zsh)"
- '';
- shellAliases = {
- ls = "ls --color=auto";
- };
-
- zplug = {
- enable = true;
- plugins = [
- { name = "mafredri/zsh-async"; }
- {
- name = "sindresorhus/pure";
- tags = [
- "as:theme"
- "use:pure.zsh"
- ];
- }
- { name = "zdharma-continuum/fast-syntax-highlighting"; }
- { name = "zsh-users/zsh-autosuggestions"; }
- ];
- };
- };
- };
-}