modified: flake.nix
new file: home/git.nix new file: home/nvchad.nix new file: home/zsh.nix new file: hosts/server/default.nix new file: lib/mkHost.nix new file: modules/wsl/wsl.nix new file: profiles/server.nix
This commit is contained in:
61
home/zsh.nix
Normal file
61
home/zsh.nix
Normal file
@@ -0,0 +1,61 @@
|
||||
{ config, pkgs, inputs, system, ... }:
|
||||
{ programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
# initContent = "source ~/.p10k.zsh";
|
||||
plugins = [
|
||||
{
|
||||
name = "powerlevel10k";
|
||||
src = pkgs.zsh-powerlevel10k;
|
||||
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
|
||||
}
|
||||
{
|
||||
name = "fzf-tab";
|
||||
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
|
||||
}
|
||||
# {
|
||||
# name = "powerlevel10k-config";
|
||||
# src = "/home/luochen570/nixos-config/modules/home/p10k/";
|
||||
# file = "p10k.zsh";
|
||||
# }
|
||||
];
|
||||
# 设置alias
|
||||
shellAliases = {
|
||||
# Git相关
|
||||
gc1 = "git clone --recursive --depth=1";
|
||||
|
||||
# 目录操作
|
||||
md = "mkdir -p";
|
||||
"..." = "../..";
|
||||
"...." = "../../..";
|
||||
"....." = "../../../..";
|
||||
"......" = "../../../../..";
|
||||
|
||||
# eza/ls替代
|
||||
ls = "eza --color=auto";
|
||||
l = "eza -lbah --icons=auto";
|
||||
la = "eza -labgh --icons=auto";
|
||||
ll = "eza -lbg --icons=auto";
|
||||
lt = "eza -lTbg --icons=auto";
|
||||
lsa = "eza -lbagR --icons=auto";
|
||||
lst = "eza -lTabgh --icons=auto";
|
||||
|
||||
# bat/cat替代
|
||||
cat = "bat -pp";
|
||||
ccat = "cat";
|
||||
};
|
||||
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [
|
||||
"sudo"
|
||||
"z"
|
||||
"extract"
|
||||
"git"
|
||||
# "fzf-tab"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user