add sapling config

This commit is contained in:
Daniel Lundin 2023-01-15 16:21:07 +01:00
parent 2b6e5adf1e
commit 5de1b0496c

View file

@ -0,0 +1,12 @@
[ui]
username =Daniel Lundin <daniel@arity.se>
[alias]
sw = switch
switch = !sl sl -M -T ':\033[31m{node|short} \033[1;33m{bookmarks}{if(bookmarks, " ")}{remotenames} {if(github_pull_request_number, "\033[1;37;41m PR #{github_pull_request_number} ")}\033[0;3;32m {date|age} \033[35;1;3mby {author|user} - \033[0;34;3m{desc|firstline}\033[0m' | sed -E -e '/31m[0-9abcdef]{12}/!d' -e 's/.+ ://' | fzf-tmux -p 90%,50% -y 0 --ansi --color=light | sed "s/ .*//" | xargs -r -n1 sl go && sl log -r . -T status
l = ll
ll = log -G -T '\033[31m{node|short} \033[3;32m{date|age} \033[35;1;3mby {author|person}\n \033[0;34;3m{desc|firstline}\033[0m\n\n'
[pager]
pager = delta --line-numbers --max-line-distance 0.9 --syntax-theme GitHub --inspect-raw-lines=false