Skip to content

Commit

Permalink
fix: drop wrong home-manager usage from zsh config
Browse files Browse the repository at this point in the history
  • Loading branch information
tboerger committed Aug 31, 2024
1 parent 7103d8a commit bfa3a45
Showing 1 changed file with 47 additions and 49 deletions.
96 changes: 47 additions & 49 deletions profiles/thomas/programs/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,64 +19,62 @@ in
};

config = mkIf cfg.enable {
home-manager.users."${config.profile.username}" = { config, ... }: {
programs = {
zsh = {
enable = true;
enableCompletion = true;
programs = {
zsh = {
enable = true;
enableCompletion = true;

autosuggestion = {
enable = true;
};
autosuggestion = {
enable = true;
};

syntaxHighlighting = {
enable = true;
};
syntaxHighlighting = {
enable = true;
};

profileExtra = ''
[ -r ~/.nix-profile/etc/profile.d/nix.sh ] && source ~/.nix-profile/etc/profile.d/nix.sh
'';
profileExtra = ''
[ -r ~/.nix-profile/etc/profile.d/nix.sh ] && source ~/.nix-profile/etc/profile.d/nix.sh
'';

history = {
size = 10000000;
save = 10000000;
extended = true;
path = "${config.home.homeDirectory}/.zhistory";
};
history = {
size = 10000000;
save = 10000000;
extended = true;
path = "${config.home.homeDirectory}/.zhistory";
};

sessionVariables = {
EDITOR = "vim";
PAGER = "less";
CLICOLOR = "1";
GREP_COLOR = "mt=1;33";
IGNOREEOF = "1";
};
sessionVariables = {
EDITOR = "vim";
PAGER = "less";
CLICOLOR = "1";
GREP_COLOR = "mt=1;33";
IGNOREEOF = "1";
};

shellAliases = {
".." = "cd ..";
"..." = "cd ../..";
shellAliases = {
".." = "cd ..";
"..." = "cd ../..";

rgrep = "grep -Rn";
hgrep = "fc -El 0 | grep";
history = "fc -l 1";
sha256sum = "shasum -a 256";
};
rgrep = "grep -Rn";
hgrep = "fc -El 0 | grep";
history = "fc -l 1";
sha256sum = "shasum -a 256";
};

oh-my-zsh = {
enable = true;
oh-my-zsh = {
enable = true;

plugins = [
"direnv"
"encode64"
"git-prompt"
"history-substring-search"
"kube-ps1"
"rsync"
"sudo"
"tmux"
"transfer"
];
};
plugins = [
"direnv"
"encode64"
"git-prompt"
"history-substring-search"
"kube-ps1"
"rsync"
"sudo"
"tmux"
"transfer"
];
};
};
};
Expand Down

0 comments on commit bfa3a45

Please sign in to comment.