Split up dotfile script
This commit is contained in:
parent
9e49595f5d
commit
ecb9d58448
5 changed files with 18 additions and 29 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
en.utf-8.*
|
4
dotfiles.sh
Executable file
4
dotfiles.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
for conf in $(ls dotfiles); do
|
||||||
|
ln -sn $PWD/dotfiles/$conf $HOME/.config/$conf
|
||||||
|
done
|
6
dotfiles/fish/functions/fish_load_env.fish
Normal file
6
dotfiles/fish/functions/fish_load_env.fish
Normal 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
|
|
@ -3,6 +3,7 @@ call plug#begin('~/.local/share/nvim/plugged')
|
||||||
Plug 'morhetz/gruvbox'
|
Plug 'morhetz/gruvbox'
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
Plug 'mattn/emmet-vim'
|
Plug 'mattn/emmet-vim'
|
||||||
|
Plug 'NoahTheDuke/vim-just'
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
"Theme
|
"Theme
|
||||||
|
@ -19,6 +20,12 @@ command TMK w | call system("latexmk -pdf " . expand("%")) | call system("latexm
|
||||||
command Shh set nonu norelativenumber scl=no
|
command Shh set nonu norelativenumber scl=no
|
||||||
command NoShh set nu relativenumber scl=auto
|
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()
|
inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
|
||||||
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
\: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
|
||||||
|
|
||||||
|
|
29
setup.sh
29
setup.sh
|
@ -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
|
|
Loading…
Reference in a new issue