Develop edison, standardize home-manager
This commit is contained in:
57
home/zsh.nix
Normal file
57
home/zsh.nix
Normal file
@@ -0,0 +1,57 @@
|
||||
{ pkgs, lib, inputs, config, ... }: {
|
||||
programs = {
|
||||
zsh = {
|
||||
enable = true;
|
||||
|
||||
prezto = {
|
||||
enable = true;
|
||||
editor = {
|
||||
keymap = "vi";
|
||||
dotExpansion = true;
|
||||
};
|
||||
prompt = {
|
||||
theme = "paradox";
|
||||
pwdLength = "long";
|
||||
showReturnVal = true;
|
||||
};
|
||||
terminal.autoTitle = true;
|
||||
|
||||
pmodules = [
|
||||
"environment"
|
||||
"terminal"
|
||||
"editor"
|
||||
"history"
|
||||
"directory"
|
||||
"spectrum"
|
||||
"utility"
|
||||
"ssh"
|
||||
"completion"
|
||||
"git"
|
||||
"autosuggestions"
|
||||
"syntax-highlighting"
|
||||
"history-substring-search"
|
||||
"prompt"
|
||||
];
|
||||
};
|
||||
|
||||
initExtra = ''
|
||||
# Autocomplete ../
|
||||
zstyle ':completion:*' special-dirs true
|
||||
export PATH="$HOME/.config/emacs/bin:$PATH"
|
||||
'';
|
||||
|
||||
shellAliases = {
|
||||
l = "exa -l";
|
||||
tree = "exa --tree --icons";
|
||||
s = "nix-shell --run zsh";
|
||||
sp = "nix-shell --run zsh -p";
|
||||
em = "emacsclient -c";
|
||||
emnw = "emacsclient -nw";
|
||||
gst = "git status -sb";
|
||||
gcm = "git commit -m";
|
||||
gps = "git push";
|
||||
gpl = "git pull";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user