summaryrefslogtreecommitdiff
path: root/nix/programs/zsh
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
committerFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
commit1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 (patch)
treeeecdad132615a4469c22ee6d4ccd1df087b6159d /nix/programs/zsh
parentuse base16 in neovim and starship (diff)
downloaddotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.gz
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.bz2
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.zip
reconfigure
Diffstat (limited to '')
-rw-r--r--nix/programs/zsh/default.nix19
-rw-r--r--nix/programs/zsh/zprofile (renamed from files/config/zsh/zprofile)0
-rw-r--r--nix/programs/zsh/zshrc (renamed from files/config/zsh/zshrc)6
3 files changed, 22 insertions, 3 deletions
diff --git a/nix/programs/zsh/default.nix b/nix/programs/zsh/default.nix
new file mode 100644
index 0000000..e0dce57
--- /dev/null
+++ b/nix/programs/zsh/default.nix
@@ -0,0 +1,19 @@
+{ config, ... }:
+
+{
+ programs.zsh = {
+ enable = true;
+ enableCompletion = true;
+ enableGlobalCompInit = false;
+ autosuggestions.enable = true;
+ syntaxHighlighting.enable = true;
+ histSize = 10000;
+ };
+
+ home-manager.users.${config.user} = {
+ home.file = {
+ ".zshrc".source = ./zshrc;
+ ".zprofile".source = ./zprofile;
+ };
+ };
+}
diff --git a/files/config/zsh/zprofile b/nix/programs/zsh/zprofile
index 4815b36..4815b36 100644
--- a/files/config/zsh/zprofile
+++ b/nix/programs/zsh/zprofile
diff --git a/files/config/zsh/zshrc b/nix/programs/zsh/zshrc
index b42d2bd..eedac23 100644
--- a/files/config/zsh/zshrc
+++ b/nix/programs/zsh/zshrc
@@ -1,8 +1,7 @@
# zsh initalization file
-# export 'SHELL' and 'EDITOR' to child processes
+# export 'SHELL' to child processes
export SHELL
-export EDITOR="nvim"
if [[ $- != *i* ]]
then
@@ -41,7 +40,8 @@ alias vim="nvim"
alias ssh='TERM=xterm-256color ssh' # xterm-kitty bad
# nix rebuild
-alias reconfigure="sudo nixos-rebuild switch --flake ~/.config/nix#$(hostname)"
+alias rs="sudo nixos-rebuild switch --flake ~/.config/nix#$(hostname)"
+alias rh="sudo home-manager switch --flake ~/.config/nix#$(hostname)"
# manpages
export LESS_TERMCAP_md=$'\e[1;36m'