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 = {
enable = true;
shellAbbrs = {
# Nix
nb = "nix build";
nr = "nix run";
nd = "nix develop";
nrpkgs = "nix run nixpkgs#";
nf = "nix flake";
nfl = "nix flake lock";
# Git
ga = "git add";
gb = "git branch";
@ -97,6 +105,7 @@ in {
gcan = "git commit --amend --no-edit";
gcm = "git checkout main";
gco = "git checkout";
gcot = "git checkout --track";
gcb = "git checkout -b";
gd = "git diff";
gl = "git pull";
@ -108,6 +117,14 @@ in {
gs = "git switch";
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
# TODO: Migrate these to fish functions

Loading…
Cancel
Save