Add nvim autocmd, fix alias, add rust to update.sh
This commit is contained in:
parent
d338debbf1
commit
db14568676
|
@ -136,7 +136,7 @@ set expandtab
|
|||
syntax on
|
||||
colorscheme onedark
|
||||
|
||||
" Indentation settings for specific filetypes
|
||||
" Settings for specific filetypes
|
||||
autocmd FileType html setlocal tabstop=2 shiftwidth=2
|
||||
autocmd FileType css setlocal tabstop=2 shiftwidth=2
|
||||
autocmd FileType scss setlocal tabstop=2 shiftwidth=2
|
||||
|
@ -144,6 +144,7 @@ autocmd FileType svelte setlocal tabstop=2 shiftwidth=2
|
|||
autocmd FileType vue setlocal tabstop=2 shiftwidth=2
|
||||
autocmd FileType json setlocal tabstop=2 shiftwidth=2
|
||||
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2
|
||||
autocmd BufNewFile,BufRead zsh*,.zsh*,*.zsh set filetype=sh
|
||||
|
||||
""" APPEARANCE
|
||||
|
||||
|
|
|
@ -21,6 +21,9 @@ command -v flatpak >/dev/null 2>&1 \
|
|||
command -v npm >/dev/null 2>&1 \
|
||||
&& { echo; npm up -g; } || true
|
||||
|
||||
command -v rustup >/dev/null 2>&1 \
|
||||
&& { echo; rustup update; } || true
|
||||
|
||||
command -v nvim >/dev/null 2>&1 \
|
||||
&& { echo; nvim --headless +PlugUpdate +PlugUpgrade +qa; echo; } || true
|
||||
|
||||
|
@ -31,4 +34,4 @@ command -v docker >/dev/null 2>&1 && [ "$(docker images | wc -l)" -gt 1 ] \
|
|||
|
||||
echo
|
||||
|
||||
zsh -ic "git -C $(dirname -- "$(readlink -e "$0")") pull && antidote update && fg &>/dev/null"
|
||||
zsh -ic "git -C $(dirname -- "$(readlink -e "$0")") pull && echo && antidote update && fg &>/dev/null"
|
||||
|
|
|
@ -52,7 +52,7 @@ if [[ $(uname -o) == "Android" ]]; then
|
|||
alias pkgqi="dpkg -s"
|
||||
alias pkgqs="dpkg -l"
|
||||
alias pkgsi="pkg info"
|
||||
alias pkgss"pkg search"
|
||||
alias pkgss="pkg search"
|
||||
elif [[ $(uname -o) == "GNU/Linux" ]]; then
|
||||
# Package management
|
||||
if [[ $(lsb_release -si) == "Artix" ]]; then
|
||||
|
|
Loading…
Reference in a new issue