do not use curl, use static file emission

main
Andrew Coleman 2023-03-29 12:06:13 -04:00
parent d4d5ca3854
commit cbe8b37e9d
1 changed files with 46 additions and 4 deletions

View File

@ -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 <<EOF > "$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 <<EOF > "$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 <<EOF > "$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 <<EOF > "$HOME/.tmux.conf"
set-option -g update-environment "SSH_AUTH_SOCK SSH_CONNECTION"
EOF
cat <<EOF > "$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/"