feat: add typora
This commit is contained in:
parent
74555bb7fa
commit
d3c48fb890
|
@ -2,5 +2,5 @@
|
||||||
|
|
||||||
case $(uname -r) in
|
case $(uname -r) in
|
||||||
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
|
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
|
||||||
*) xdg-open "$@";;
|
*) exo-open "$@" 1>/dev/null 2>&1;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -72,7 +72,7 @@ function! WSLCopy()
|
||||||
endif
|
endif
|
||||||
let lines[-1] = lines[-1][: column_end - (&selection == 'inclusive' ? 1 : 2)]
|
let lines[-1] = lines[-1][: column_end - (&selection == 'inclusive' ? 1 : 2)]
|
||||||
let lines[0] = lines[0][column_start - 1:]
|
let lines[0] = lines[0][column_start - 1:]
|
||||||
call system('clip.exe', join(lines, "\n"))
|
call system('xsel -b', join(lines, "\n"))
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
xnoremap <leader>y <esc>:call WSLCopy()<CR>
|
xnoremap <leader>y <esc>:call WSLCopy()<CR>
|
||||||
|
|
|
@ -4,7 +4,7 @@ set -e
|
||||||
DIR=$(dirname "$(readlink -f "$0")")
|
DIR=$(dirname "$(readlink -f "$0")")
|
||||||
. "$DIR/../env.sh"
|
. "$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
|
case "$PM" in
|
||||||
apt)
|
apt)
|
||||||
|
@ -29,6 +29,7 @@ case "$PM" in
|
||||||
libreoffice-fresh \
|
libreoffice-fresh \
|
||||||
keepassxc \
|
keepassxc \
|
||||||
nextcloud-client
|
nextcloud-client
|
||||||
|
yay -S typora
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -38,11 +38,14 @@ case "$PM" in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# longer password caching time
|
# longer password caching time
|
||||||
echo <<EOF > ~/.gnupg/gpg-agent.conf
|
cat <<EOF > ~/.gnupg/gpg-agent.conf
|
||||||
default-cache-ttl 28800
|
default-cache-ttl 28800
|
||||||
max-cache-ttl 28800
|
max-cache-ttl 28800
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
# enable browser-native for google-chrome
|
||||||
|
make -C /usr/lib/browserpass hosts-chrome-user
|
||||||
|
|
||||||
# install browserpass-native
|
# install browserpass-native
|
||||||
intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native"
|
intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native"
|
||||||
make configure
|
make configure
|
||||||
|
|
Loading…
Reference in New Issue
Block a user