Split up dotfile script

This commit is contained in:
Devon Tingley 2022-04-18 08:17:08 -04:00
parent 9e49595f5d
commit ecb9d58448
5 changed files with 18 additions and 29 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
en.utf-8.*

4
dotfiles.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
for conf in $(ls dotfiles); do
ln -sn $PWD/dotfiles/$conf $HOME/.config/$conf
done

View file

@ -0,0 +1,6 @@
function fish_load_env
for i in (cat $argv)
set arr (echo $i | tr = \n)
set -gx $arr[1] (echo $arr[2] | tr -d '"')
end
end

View file

@ -3,6 +3,7 @@ call plug#begin('~/.local/share/nvim/plugged')
Plug 'morhetz/gruvbox'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'mattn/emmet-vim'
Plug 'NoahTheDuke/vim-just'
call plug#end()
"Theme
@ -19,6 +20,12 @@ command TMK w | call system("latexmk -pdf " . expand("%")) | call system("latexm
command Shh set nonu norelativenumber scl=no
command NoShh set nu relativenumber scl=auto
autocmd BufWritePost *.tf call TerraformFormat()
function TerraformFormat()
call system("terraform fmt " . expand("%"))"
edit
endfunction
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"

View file

@ -1,29 +0,0 @@
#!/bin/bash
setup_macos() {
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)";
}
for conf in $(ls dotfiles); do
ln -sn $PWD/dotfiles/$conf $HOME/.config/$conf
done
# Determine which OS is in use
case "$(uname)" in
Linux*) INSTALL_CMD="yay -S";;
Darwin*) INSTALL_CMD="brew install";;
esac
# Install software
$INSTALL_CMD fish git cloc htop ncdu tree
$INSTALL_CMD alacritty neovim zellij zoxide
$INSTALL_CMD rustup rust-analyzer
$INSTALL_CMD go gopls
$INSTALL_CMD nodejs yarn
$INSTALL_CMD obsidian
if [[ "$(uname)" == "Linux" ]]; then
$INSTALL_CMD rofi
$INSTALL_CMD lxappearance adapta-gtk-theme papirus-icon-theme nerd-fonts-complete
$INSTALL_CMD docker docker-compose
fi