add shell alias

This commit is contained in:
Frost-Phoenix 2023-11-05 21:47:04 +01:00
parent 6f8782ca41
commit f5243bb25c
3 changed files with 39 additions and 8 deletions

View file

@ -10,6 +10,27 @@
init.defaultBranch = "main"; init.defaultBranch = "main";
credential.helper = "store"; credential.helper = "store";
}; };
environment.shellAliases = {
# 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 ];

View file

@ -18,6 +18,8 @@
rustup rustup
php php
vscode vscode
lazygit
bat
# others # others
openssl openssl

View file

@ -11,16 +11,24 @@
}; };
shellAliases = { shellAliases = {
n = "clear && neofetch"; # 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')";
v = "nvim"; # ani = "bash $HOME/.local/bin/anime --dub";
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"; vim = "nvim";
ls = "exa --icons --long"; cat = "bat --theme 'Visual Studio Dark+'";
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";
findw = "grep -rl";
# nixos # nixos
ncg = "nix-collect-garbage && nix-collect-garbage -d && sudo nix-collect-garbage && sudo nix-collect-garbage -d && sudo rm /nix/var/nix/gcroots/auto/*"; nix-switch = "sudo nixos-rebuild switch --flake nixos-config#nixos";
nix-switch = "sudo nixos-rebuild switch --flake ~/Flakes/.#nixos"; nix-switchu = "sudo nixos-rebuild switch --upgrade --flake nixos-config#nixos";
fl = "cd ~/Flakes/ && v"; 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 = "sudo nix-collect-garbage -d";
# nix-cleanold = "sudo nix-collect-garbage --delete-old";
# nix-cleanboot = "sudo /run/current-system/bin/switch-to-configuration boot";
# python # python
piv = "python -m venv .venv"; piv = "python -m venv .venv";