about summary refs log tree commit diff stats
path: root/nix-conf
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2023-01-20 12:07:29 +0000
committerDavid Morgan <djm_uk@protonmail.com>2023-01-20 12:07:29 +0000
commitc6b5676eeb57f6647d4601654a04c6fdacecb97d (patch)
treea350c2fbd7ac65a132a520ffba127a989eada097 /nix-conf
parent82087e73b5ef233529ae55bea92489287b69f04c (diff)
downloaddotfiles-c6b5676eeb57f6647d4601654a04c6fdacecb97d.tar.gz
Add some more aliases
Diffstat (limited to 'nix-conf')
-rw-r--r--nix-conf/home/includes/zsh.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/nix-conf/home/includes/zsh.nix b/nix-conf/home/includes/zsh.nix
index cc79fb9..d62bbb4 100644
--- a/nix-conf/home/includes/zsh.nix
+++ b/nix-conf/home/includes/zsh.nix
@@ -59,6 +59,7 @@ in
       _nix-up = "doas nix-channel --update && doas nixos-rebuild switch && nix-channel --update && home-manager switch && system-changes-report && hm-changes-report && df -h && date";
       home-up = "git -C ~/dotfiles pull && nix-channel --update && home-manager switch && hm-changes-report";
       _home-up = "nix-channel --update && home-manager switch && hm-changes-report";
+      nix-hammer = "nix shell -f https://github.com/jtojnar/nixpkgs-hammering/archive/master.tar.gz -c nixpkgs-hammer";
 
       fb = "fzf --preview 'bat --color=always --style=numbers --line-range=:500 {}'";
 
@@ -68,6 +69,8 @@ in
       erg = "ea run grouped rg --";
       fd = "ea run linear fd --";
 
+      git-reset-branch = "git fetch && git reset --hard origin/\$(git branch --show-current)";
+
       # Git log aliases from the omz git plugin
       gl = "git pull";
       glg = "git log --stat";