There are multiple options to run a Git command from outside of a repository directory[fn:todo].
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use flake . |
Linguist is a language modes pack for Emacs, inspired by vim-polyglot.
The org-cycle-separator-lines variable determines hwo Org hides trailing lines when collapsing document sections.
It’s options are confusing at first glance, as it takes either a positive or negative number, but should make more sense with some examples.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; Disable package.el in favor of straight.el | |
| (setq package-enable-at-startup nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| loop do | |
| retries = 0 | |
| begin | |
| # TODO fetch and run a job | |
| rescue StandardError => error | |
| if retries < 10 | |
| sleep(retries * 10) | |
| retries += 1 |
A subshell creates a separate instance of the command processor, or a subprocess of the parent shell. Although a subshell is started in its parent’s working directory, directory changes made within the subshell don’t carry over to its parent. This makes subshells ideal for running one-off commands in a different directory:
$ pwd /Users/jeffkreeftmeijer/rust/conway/ $ (cd www && npm install) [...] $ pwd /Users/jeffkreeftmeijer/rust/conway/
NewerOlder