From d3c48fb89059dd31ae4dcb2520b92fff39831d8f Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 27 Aug 2021 11:30:50 +0800 Subject: [PATCH] feat: add typora --- bin/x-open | 2 +- cli/vim/init.vim | 2 +- gui/office.sh | 3 ++- gui/pass.sh | 5 ++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/x-open b/bin/x-open index f71486c..83ce3f0 100755 --- a/bin/x-open +++ b/bin/x-open @@ -2,5 +2,5 @@ case $(uname -r) in *microsoft*) powershell.exe -noprofile start-process "'$@'";; - *) xdg-open "$@";; + *) exo-open "$@" 1>/dev/null 2>&1;; esac diff --git a/cli/vim/init.vim b/cli/vim/init.vim index fd8bca0..ab4117e 100644 --- a/cli/vim/init.vim +++ b/cli/vim/init.vim @@ -72,7 +72,7 @@ function! WSLCopy() endif let lines[-1] = lines[-1][: column_end - (&selection == 'inclusive' ? 1 : 2)] let lines[0] = lines[0][column_start - 1:] - call system('clip.exe', join(lines, "\n")) + call system('xsel -b', join(lines, "\n")) endfunction xnoremap y :call WSLCopy() diff --git a/gui/office.sh b/gui/office.sh index a979a5c..f1f3718 100755 --- a/gui/office.sh +++ b/gui/office.sh @@ -4,7 +4,7 @@ set -e DIR=$(dirname "$(readlink -f "$0")") . "$DIR/../env.sh" -log 'Settingup office tools: libreoffice keepassxc nextcloud chrome zathura gimp sxiv' +log 'Settingup office tools: libreoffice keepassxc nextcloud chrome zathura gimp sxiv typora' case "$PM" in apt) @@ -29,6 +29,7 @@ case "$PM" in libreoffice-fresh \ keepassxc \ nextcloud-client + yay -S typora ;; esac diff --git a/gui/pass.sh b/gui/pass.sh index 8e41938..f5feb7f 100755 --- a/gui/pass.sh +++ b/gui/pass.sh @@ -38,11 +38,14 @@ case "$PM" in esac # longer password caching time -echo < ~/.gnupg/gpg-agent.conf +cat < ~/.gnupg/gpg-agent.conf default-cache-ttl 28800 max-cache-ttl 28800 EOF +# enable browser-native for google-chrome +make -C /usr/lib/browserpass hosts-chrome-user + # install browserpass-native intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native" make configure