change files structure
This commit is contained in:
parent
f3a6ce6554
commit
736048f9e5
24 changed files with 28 additions and 31 deletions
72
modules/home/zsh.nix
Normal file
72
modules/home/zsh.nix
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
{ hostname, config, pkgs, ...}:
|
||||
{
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
oh-my-zsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "fzf" ];
|
||||
};
|
||||
initExtraFirst = ''
|
||||
DISABLE_MAGIC_FUNCTIONS=true
|
||||
export "MICRO_TRUECOLOR=1"
|
||||
'';
|
||||
shellAliases = {
|
||||
# record = "wf-recorder --audio=alsa_output.pci-0000_08_00.6.analog-stereo.monitor -f $HOME/Videos/$(date +'%Y%m%d%H%M%S_1.mp4')";
|
||||
|
||||
# Utils
|
||||
c = "clear";
|
||||
cd = "z";
|
||||
tt = "gtrash put";
|
||||
cat = "bat";
|
||||
nano = "micro";
|
||||
code = "codium";
|
||||
icat = "kitten icat";
|
||||
dsize = "du -hs";
|
||||
findw = "grep -rl";
|
||||
|
||||
l = "eza --icons -a --group-directories-first -1"; #EZA_ICON_SPACING=2
|
||||
ll = "eza --icons -a --group-directories-first -1 --no-user --long";
|
||||
tree = "eza --icons --tree --group-directories-first";
|
||||
|
||||
# Nixos
|
||||
cdnix = "cd ~/nixos-config && codium ~/nixos-config";
|
||||
ns = "nix-shell --run zsh";
|
||||
nix-shell = "nix-shell --run zsh";
|
||||
nix-switch = "sudo nixos-rebuild switch --flake ~/nixos-config#nixos";
|
||||
nix-switchu = "sudo nixos-rebuild switch --upgrade --flake ~/nixos-config#nixos";
|
||||
nix-flake-update = "sudo nix flake update ~/nixos-config#";
|
||||
nix-clean = "sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/* && nix-collect-garbage && nix-collect-garbage -d";
|
||||
|
||||
# Git
|
||||
ga = "git add";
|
||||
gaa = "git add --all";
|
||||
gs = "git status";
|
||||
gb = "git branch";
|
||||
gm = "git merge";
|
||||
gpl = "git pull";
|
||||
gplo = "git pull origin";
|
||||
gps = "git push";
|
||||
gpst = "git push --follow-tags";
|
||||
gpso = "git push origin";
|
||||
gc = "git commit";
|
||||
gcm = "git commit -m";
|
||||
gtag = "git tag -ma";
|
||||
gch = "git checkout";
|
||||
gchb = "git checkout -b";
|
||||
gcoe = "git config user.email";
|
||||
gcon = "git config user.name";
|
||||
|
||||
# python
|
||||
piv = "python -m venv .venv";
|
||||
psv = "source .venv/bin/activate";
|
||||
};
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
}
|
||||
Reference in a new issue