feat(fish): add abbrs for `nix`, `git` & `rust`

main
sgoudham 1 year ago
parent 5d78b2af7e
commit 4cb58d9984
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -89,6 +89,14 @@ in {
fish = { fish = {
enable = true; enable = true;
shellAbbrs = { shellAbbrs = {
# Nix
nb = "nix build";
nr = "nix run";
nd = "nix develop";
nrpkgs = "nix run nixpkgs#";
nf = "nix flake";
nfl = "nix flake lock";
# Git # Git
ga = "git add"; ga = "git add";
gb = "git branch"; gb = "git branch";
@ -97,6 +105,7 @@ in {
gcan = "git commit --amend --no-edit"; gcan = "git commit --amend --no-edit";
gcm = "git checkout main"; gcm = "git checkout main";
gco = "git checkout"; gco = "git checkout";
gcot = "git checkout --track";
gcb = "git checkout -b"; gcb = "git checkout -b";
gd = "git diff"; gd = "git diff";
gl = "git pull"; gl = "git pull";
@ -108,6 +117,14 @@ in {
gs = "git switch"; gs = "git switch";
gst = "git status"; gst = "git status";
# Rust
cb = "cargo build";
cbr = "cargo build --release";
ct = "cargo test";
ctlog = "cargo test -- --nocapture";
cpub = "cargo publish";
cpubdry = "cargo publish --dry-run";
# Kubectl # Kubectl
# TODO: Migrate these to fish functions # TODO: Migrate these to fish functions

Loading…
Cancel
Save