This commit is contained in:
commit
30ce0dafc2
195 changed files with 8902 additions and 0 deletions
33
users/macan/variables/shell_aliases.nix
Normal file
33
users/macan/variables/shell_aliases.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
options.shellAliases = lib.mkOption {
|
||||
type = lib.types.attrs;
|
||||
default = {
|
||||
e = "exit";
|
||||
ls = "eza --icons=always --no-quotes";
|
||||
tree = "eza --icons=always --tree --no-quotes";
|
||||
cat = "bat --theme=base16 --color=always --paging=never --tabs=2 --wrap=never --plain";
|
||||
mkdir = "mkdir -p";
|
||||
poweroff = "sudo poweroff";
|
||||
shutdown = "sudo poweroff";
|
||||
reboot = "sudo reboot";
|
||||
|
||||
nix-shell = "nix-shell --command fish";
|
||||
|
||||
# git
|
||||
ga = "git add";
|
||||
gc = "git commit";
|
||||
gp = "git push";
|
||||
gpl = "git pull";
|
||||
gs = "git status";
|
||||
gd = "git diff";
|
||||
gco = "git checkout";
|
||||
gcb = "git checkout -b";
|
||||
gbr = "git branch";
|
||||
grs = "git reset HEAD~1";
|
||||
grh = "git reset --hard HEAD~1";
|
||||
gaa = "git add .";
|
||||
gcm = "git commit -m";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue