]> git.bundesbrandschatzamt.de Git - emacsconfig.git/commitdiff
add eshell git pull
authorAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sat, 25 May 2024 10:45:57 +0000 (12:45 +0200)
committerAndreas Gerler <baronNOSPAMbundesbrandschatzamt.de>
Sat, 25 May 2024 10:45:57 +0000 (12:45 +0200)
bba-shell.org

index 2f1c075f06a9c8235008b60fe231ad363f945f23..1abdf0f738100f837965b1448760e855832e1bde 100644 (file)
@@ -97,6 +97,14 @@ A little bit of code from https://github.com/bodil/emacs.d/blob/master/bodil/bod
   ;; (defalias 'eshell/man "tramp-aware-woman ${*man -w $1}")
   :: (defalias 'man "woman-find-file ${*man --path $1}")
 #+end_src
+
+#+begin_src elisp
+  (defalias 'pull '(lambda ()
+                    (shell-command "git stash")
+                    (shell-command "git pull --rebase origin ")
+                    (shell-command "git stash pop")))
+#+end_src
+
 ** [[https://codeberg.org/akib/emacs-eat/][eat]]
 [2024-02-05 Mon 12:10]