5 ms·
For comparison, here is my Zsh configuration in NixOS: { programs.starship = { enable = true; }; programs.zsh = { enable = true;
by sshine 3y ago
For comparison, here is my Zsh configuration in NixOS:
{
programs.starship = {
enable = true;
};
programs.zsh = {
enable = true;
enableCompletion = true;
enableBashCompletion = true;
enableGlobalCompInit = true;
syntaxHighlighting.enable = true;
syntaxHighlighting.highlighters = [ "main" "brackets" ];
histSize = 100000;
# See `man zshoptions` for more details.
setOptions = [
# Remove duplicates continuously from command history (preserve newest entry).
"HIST_IGNORE_DUPS"
# Instantly share command history between all active shells.
"SHARE_HISTORY" # Alternative to: "APPEND_HISTORY", "INC_APPEND_HISTORY",
# Disable ^S and ^Z for less accidental freezing.
"FLOW_CONTROL"
# Save timestamp and duration of each command in command history.
"EXTENDED_HISTORY"
];
shellAliases = {
rm = "rm -iv";
ls = "ls -F --color=auto";
gs = "git status";
gd = "git diff";
gdc = "git diff --cached";
gap = "git add -p";
gl = "git log";
gpr = "git pull --rebase";
};
interactiveShellInit = ''
bindkey '^[[7~' beginning-of-line
bindkey '^[[8~' end-of-line
bindkey '^R' history-incremental-search-backward
eval "$(starship init zsh)"
'';
};
}
My .zshrc used to be bigger, but I've slimmed it down to see what I actually use from it.