diff --git a/setup-mac.sh b/setup-mac.sh index 7f70dbf..fb03154 100755 --- a/setup-mac.sh +++ b/setup-mac.sh @@ -129,10 +129,34 @@ config.mouse_bindings = { return config EOF -curl -sw '%{url_effective}\n' -Lo "$HOME/.config/starship.toml" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_config/starship.toml +cat < "$HOME/.config/starship.toml" +[container] +disabled=true +EOF mkdir -p "$HOME/.config/helix" -curl -sw '%{url_effective}\n' -Lo "$HOME/.config/helix/config.toml" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_config/helix/config.toml +cat < "$HOME/.config/helix/config.toml" +theme = "onelight" + +[editor] +true-color = true +color-modes = true +idle-timeout = 75 + +[editor.indent-guides] +render = true + +[editor.cursor-shape] +insert = "bar" +normal = "block" +select = "underline" + +[keys.normal] +"$" = "goto_line_end" +"^" = "goto_line_start" +"F2" = "goto_previous_buffer" +"F3" = "goto_next_buffer" +EOF cat < "$HOME/.gitconfig" [push] @@ -212,8 +236,26 @@ if [ ! -d "$HOME/.cargo" ] ; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path --default-toolchain stable --profile complete -y fi -curl -sw '%{url_effective}\n' -Lo "$HOME/.tmux.conf" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_tmux.conf -curl -sw '%{url_effective}\n' -Lo "$HOME/.vimrc" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_vimrc +cat < "$HOME/.tmux.conf" +set-option -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION" +EOF + +cat < "$HOME/.vimrc" +" gratis https://swordandsignals.com/2020/12/13/5-lines-in-vimrc.html +set hlsearch " highlight all search results +set ignorecase " do case insensitive search +set incsearch " show incremental search results as you type +set number " display line number +set noswapfile " disable swap file +" can also be summarized as +set hls ic is nu noswf +" from https://www.guckes.net/vim/setup.html +set ai nocp ek hid ru sc vb wmnu noeb noet nosol +set bs=2 fo=cqrt ls=2 shm=at ww=<,>,h,l +set comments=b:#,:%,n:> +set list listchars=tab:>=,trail:- +set viminfo=%,'50,\"100,:100,n~/.viminfo +EOF install -m 640 ./.zshrc "$HOME/"