feat(servers): basic zsh config.
This commit is contained in:
parent
06ac74fad4
commit
3e84647f7f
2 changed files with 55 additions and 0 deletions
|
@ -11,5 +11,6 @@
|
||||||
./optimise-storage.nix
|
./optimise-storage.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./nix-features.nix
|
./nix-features.nix
|
||||||
|
./shell.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
54
modules/servers/general/shell.nix
Normal file
54
modules/servers/general/shell.nix
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
{pkgs, ...}: {
|
||||||
|
users.extraUsers.root = {
|
||||||
|
shell = pkgs.zsh;
|
||||||
|
};
|
||||||
|
|
||||||
|
programs.zsh = {
|
||||||
|
enable = true;
|
||||||
|
enableCompletion = true;
|
||||||
|
autosuggestions.enable = true;
|
||||||
|
# historySubstringSearch.enable = true;
|
||||||
|
|
||||||
|
shellAliases = {
|
||||||
|
# General aliases
|
||||||
|
grep = "grep --color=auto";
|
||||||
|
cp = "cp -iv";
|
||||||
|
rm = "rm -iv";
|
||||||
|
mkd = "mkdir -pv";
|
||||||
|
less = "less -R";
|
||||||
|
df = "df -h -x devtmpfs -x tmpfs -x usbfs -x loop";
|
||||||
|
free = "free -mht";
|
||||||
|
# nnn on crack
|
||||||
|
nnn = ''LC_COLLATE="C" nnn -xeaiH'';
|
||||||
|
# Buku powerup
|
||||||
|
b = "buku -p";
|
||||||
|
# fzf shenanigans
|
||||||
|
vif = ''nvim $(fzf --preview="bat --color=always {}")'';
|
||||||
|
};
|
||||||
|
|
||||||
|
ohMyZsh = {
|
||||||
|
enable = true;
|
||||||
|
plugins = [
|
||||||
|
"zap-zsh/supercharge"
|
||||||
|
"zap-zsh/completions"
|
||||||
|
"zap-zsh/vim"
|
||||||
|
"chivalryq/git-alias"
|
||||||
|
"zdharma-continuum/fast-syntax-highlighting"
|
||||||
|
"zsh-users/zsh-history-substring-search"
|
||||||
|
"MichaelAquilina/zsh-you-should-use"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
# antidote = {
|
||||||
|
# enable = true;
|
||||||
|
# plugins = [
|
||||||
|
# "zap-zsh/supercharge"
|
||||||
|
# "zap-zsh/completions"
|
||||||
|
# "zap-zsh/vim"
|
||||||
|
# "chivalryq/git-alias"
|
||||||
|
# "zdharma-continuum/fast-syntax-highlighting"
|
||||||
|
# "zsh-users/zsh-history-substring-search"
|
||||||
|
# "MichaelAquilina/zsh-you-should-use"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue