feat: add typora

This commit is contained in:
Klesh Wong 2021-08-27 11:30:50 +08:00
parent 74555bb7fa
commit d3c48fb890
4 changed files with 8 additions and 4 deletions

View File

@ -2,5 +2,5 @@
case $(uname -r) in
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
*) xdg-open "$@";;
*) exo-open "$@" 1>/dev/null 2>&1;;
esac

View File

@ -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 <leader>y <esc>:call WSLCopy()<CR>

View File

@ -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

View File

@ -38,11 +38,14 @@ case "$PM" in
esac
# longer password caching time
echo <<EOF > ~/.gnupg/gpg-agent.conf
cat <<EOF > ~/.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