update shell alias config
This commit is contained in:
parent
24a2dd5cf3
commit
0370e84236
|
@ -10,27 +10,6 @@
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
credential.helper = "store";
|
credential.helper = "store";
|
||||||
};
|
};
|
||||||
|
|
||||||
aliases = {
|
|
||||||
# Git aliases
|
|
||||||
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";
|
|
||||||
gpso = "git push origin";
|
|
||||||
gc = "git commit";
|
|
||||||
gcm = "git commit -m";
|
|
||||||
gch = "git checkout";
|
|
||||||
gchb = "git checkout -b";
|
|
||||||
gcoe = "git config user.email";
|
|
||||||
gcon = "git config user.name";
|
|
||||||
|
|
||||||
g = "lazygit";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [ pkgs.gh ];
|
home.packages = [ pkgs.gh ];
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
# 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')";
|
# 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')";
|
||||||
# ani = "bash $HOME/.local/bin/anime --dub";
|
# ani = "bash $HOME/.local/bin/anime --dub";
|
||||||
|
|
||||||
|
# Utils
|
||||||
vim = "nvim";
|
vim = "nvim";
|
||||||
cat = "bat --theme 'Visual Studio Dark+'";
|
cat = "bat --theme 'Visual Studio Dark+'";
|
||||||
l = "eza --icons -a --group-directories-first -1"; #EZA_ICON_SPACING=2
|
l = "eza --icons -a --group-directories-first -1"; #EZA_ICON_SPACING=2
|
||||||
|
@ -21,15 +22,34 @@
|
||||||
tree = "eza --icons --tree --group-directories-first";
|
tree = "eza --icons --tree --group-directories-first";
|
||||||
findw = "grep -rl";
|
findw = "grep -rl";
|
||||||
|
|
||||||
# nixos
|
# Nixos
|
||||||
nix-switch = "sudo nixos-rebuild switch --flake nixos-config#nixos";
|
nix-switch = "sudo nixos-rebuild switch --flake ~/nixos-config#nixos";
|
||||||
nix-switchu = "sudo nixos-rebuild switch --upgrade --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-flake-update = "sudo nix flake update ~/nixos-config#";
|
||||||
nix-clean = "nix-collect-garbage && nix-collect-garbage -d && sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/*";
|
nix-clean = "nix-collect-garbage && nix-collect-garbage -d && sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/*";
|
||||||
# nix-clean = "sudo nix-collect-garbage -d";
|
# nix-clean = "sudo nix-collect-garbage -d";
|
||||||
# nix-cleanold = "sudo nix-collect-garbage --delete-old";
|
# nix-cleanold = "sudo nix-collect-garbage --delete-old";
|
||||||
# nix-cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot";
|
# nix-cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot";
|
||||||
|
|
||||||
|
# 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";
|
||||||
|
gpso = "git push origin";
|
||||||
|
gc = "git commit";
|
||||||
|
gcm = "git commit -m";
|
||||||
|
gch = "git checkout";
|
||||||
|
gchb = "git checkout -b";
|
||||||
|
gcoe = "git config user.email";
|
||||||
|
gcon = "git config user.name";
|
||||||
|
|
||||||
|
g = "lazygit";
|
||||||
|
|
||||||
# python
|
# python
|
||||||
piv = "python -m venv .venv";
|
piv = "python -m venv .venv";
|
||||||
psv = "source .venv/bin/activate";
|
psv = "source .venv/bin/activate";
|
||||||
|
|
Loading…
Reference in a new issue