Compare commits
3 commits
ae7761aaa5
...
43d0c4784b
Author | SHA1 | Date | |
---|---|---|---|
![]() |
43d0c4784b | ||
![]() |
8f197b24c5 | ||
![]() |
81d9709c91 |
3 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
set bg=dark
|
||||||
" Set custom Vim config directory
|
" Set custom Vim config directory
|
||||||
let s:vim_config_dir = '~/.config/vim'
|
let s:vim_config_dir = '~/.config/vim'
|
||||||
let s:autoload_dir = s:vim_config_dir . '/autoload'
|
let s:autoload_dir = s:vim_config_dir . '/autoload'
|
||||||
|
@ -13,7 +14,6 @@ endif
|
||||||
set runtimepath+=~/.config/vim
|
set runtimepath+=~/.config/vim
|
||||||
execute 'source ' . s:plug_vim
|
execute 'source ' . s:plug_vim
|
||||||
|
|
||||||
|
|
||||||
" Initialize vim-plug
|
" Initialize vim-plug
|
||||||
call plug#begin('~/.config/vim/plugged')
|
call plug#begin('~/.config/vim/plugged')
|
||||||
|
|
||||||
|
|
|
@ -226,7 +226,7 @@
|
||||||
url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh"
|
url: "https://raw.githubusercontent.com/rcaloras/bash-preexec/master/bash-preexec.sh"
|
||||||
refreshPeriod: "{{ $defaultRefresh }}"
|
refreshPeriod: "{{ $defaultRefresh }}"
|
||||||
|
|
||||||
{{ if eq .chezmoi.os "linux" -}}
|
{{ if (and ( eq .chezmoi.os "linux" ) ( ne .chezmoi.osRelease.id "centos" )) -}}
|
||||||
".local/bin/nvim.AppImage":
|
".local/bin/nvim.AppImage":
|
||||||
type: "file"
|
type: "file"
|
||||||
url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"
|
url: "https://github.com/neovim/neovim/releases/download/stable/nvim-linux-x86_64.appimage"
|
||||||
|
|
|
@ -27,13 +27,20 @@ if is_sourced; then
|
||||||
}
|
}
|
||||||
refresh-zellij() {
|
refresh-zellij() {
|
||||||
${SET:-:} -x
|
${SET:-:} -x
|
||||||
if [ -z "$(env which zellij)" ] && ! [ -x ~/.local/bin/zellij ]; then
|
local bin_path=~/.local/bin/zellij
|
||||||
if [[ ! -r /tmp/zellij/bootstrap/zellij ]]; then
|
local cached_path=~/.cache/chezmoi/tmp/zellij
|
||||||
|
if [ -z "$(env which zellij)" ] && [ -x "${cached_path}" ]; then
|
||||||
|
printf "Grabbing zellij from the web!\n"
|
||||||
|
cp "${cached_path}" "${bin_path}"
|
||||||
|
fi
|
||||||
|
local cached_path=/tmp/zellij/bootstrap/zellij
|
||||||
|
if [ -z "$(env which zellij)" ] && ! [ -x "${bin_path}" ]; then
|
||||||
|
if [[ ! -r "${cached_path}" ]]; then
|
||||||
printf "Grabbing zellij from the web!\n"
|
printf "Grabbing zellij from the web!\n"
|
||||||
bash <(curl -sL zellij.dev/launch) "--help" > /dev/null 2>&1 || true
|
bash <(curl -sL zellij.dev/launch) "--help" > /dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
if [[ -r /tmp/zellij/bootstrap/zellij ]]; then
|
if [[ -r "${cached_path}" ]]; then
|
||||||
mv /tmp/zellij/bootstrap/zellij ~/.local/bin/zellij
|
mv "${cached_path}" "${bin_path}"
|
||||||
rm -fR /tmp/zellij
|
rm -fR /tmp/zellij
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue