From 5de1b0496cb6040c6c406fc2433c29149ba129ba Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Sun, 15 Jan 2023 16:21:07 +0100 Subject: [PATCH] add sapling config --- .config/sapling/sapling.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/sapling/sapling.conf diff --git a/.config/sapling/sapling.conf b/.config/sapling/sapling.conf new file mode 100644 index 0000000..76e1825 --- /dev/null +++ b/.config/sapling/sapling.conf @@ -0,0 +1,12 @@ +[ui] +username =Daniel Lundin + +[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