From 772896a3c2f53a5da612cb6f33f8d280589f17d2 Mon Sep 17 00:00:00 2001 From: xerus2000 <27jf@pm.me> Date: Mon, 1 Mar 2021 09:21:30 +0100 Subject: [PATCH] config/shell: add st config & improve some aliases --- .Xdefaults | 2 ++ .config/shell/functions | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 .Xdefaults diff --git a/.Xdefaults b/.Xdefaults new file mode 100644 index 0000000..a1fd2e7 --- /dev/null +++ b/.Xdefaults @@ -0,0 +1,2 @@ +*.font: mono:pixelsize=24:antialias=true:autohint=true; +*.background: #222 diff --git a/.config/shell/functions b/.config/shell/functions index 5c191ee..40ee732 100644 --- a/.config/shell/functions +++ b/.config/shell/functions @@ -30,7 +30,7 @@ rd() { rr() { mv "$@" /tmp } alias j='jrnl' -alias jn='jrnl -to today | bat --style=plain --pager="less +G"' +jn() { jrnl -to today "$@" | bat --style=plain --pager="less +G" } # like "which", but shows contents if it resolves to a file wh() { @@ -140,7 +140,7 @@ alias graphics='lspci -vnn | grep VGA --color=never && xrandr --listproviders' alias vlch="vlc -H | ${PAGER:-less}" alias usergroups="cat /etc/passwd | cut -d':' -f1 | xargs -n 1 id" alias omd="(echo '#+OPTIONS: tags:nil'; xclip -o -selection clipboard) | pandoc -f org-auto_identifiers -t markdown --wrap preserve | xclip -filter" -alias mdo="pandoc -f gfm -t org --wrap preserve" +alias mdo="pandoc -f gfm-ascii_identifiers-gfm_auto_identifiers -t org --wrap preserve" alias mdox="xclip -o -selection clipboard | mdo | xclip -filter" alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'