This commit is contained in:
commit
95a533c876
451 changed files with 18255 additions and 0 deletions
33
modules/home/common/shellAliases.nix
Normal file
33
modules/home/common/shellAliases.nix
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
home.shellAliases = {
|
||||
l = "ls -lh";
|
||||
ll = "ls -lAh";
|
||||
ports = "ss -tulpn";
|
||||
publicip = "curl ifconfig.me/all";
|
||||
sudo = "sudo "; # make aliases work with `sudo`
|
||||
|
||||
# systemd
|
||||
userctl = "systemctl --user";
|
||||
enable = "systemctl --user enable";
|
||||
disable = "systemctl --user disable";
|
||||
start = "systemctl --user start";
|
||||
stop = "systemctl --user stop";
|
||||
journal = "journalctl --user";
|
||||
|
||||
# git
|
||||
ga = "git add";
|
||||
gb = "git branch";
|
||||
gc = "git commit";
|
||||
gcl = "git clone";
|
||||
gco = "git checkout";
|
||||
gcp = "git cherry-pick -x";
|
||||
gd = "git diff";
|
||||
gf = "git fetch --all";
|
||||
gl = "git log";
|
||||
gm = "git merge";
|
||||
gp = "git push";
|
||||
gpl = "git pull";
|
||||
gr = "git remote";
|
||||
gs = "git status";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue