Compare commits
3 Commits
7f39d5381a
...
cbe8b37e9d
Author | SHA1 | Date |
---|---|---|
Andrew Coleman | cbe8b37e9d | |
Andrew Coleman | d4d5ca3854 | |
Andrew Coleman | 4735df8dab |
81
setup-mac.sh
81
setup-mac.sh
|
@ -14,8 +14,8 @@ mkdir -p "$HOME/.config/nix"
|
|||
if [ ! -f "$HOME/.config/nix/nix.conf" ] ; then
|
||||
echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf
|
||||
echo "trusted-users = root andrew" | sudo tee -a /etc/nix/nix.conf && sudo pkill nix-daemon
|
||||
nix profile install nixpkgs#cachix
|
||||
cachix use devenv
|
||||
nix profile install --accept-flake-config github:cachix/devenv/latest
|
||||
fi
|
||||
|
||||
function has_bin() {
|
||||
|
@ -90,33 +90,6 @@ has_bin "zoxide" || nix profile install nixpkgs#zoxide
|
|||
|
||||
PATH="$PATH:$HOME/.nix-profile/bin"
|
||||
|
||||
if [ ! -e /Applications/kitty.app ] ; then
|
||||
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
||||
fi
|
||||
|
||||
mkdir -p "$HOME/.config/kitty"
|
||||
|
||||
cat <<EOF > "$HOME/.config/kitty/kitty.conf"
|
||||
font_family Operator Mono Book
|
||||
#bold_font Operator Mono Bold
|
||||
#italic_font Operator Mono Italic
|
||||
#bold_italic_font Operator Mono Bold Italic
|
||||
font_size 20.0
|
||||
cursor_shape block
|
||||
shell_integration no-cursor
|
||||
tab_bar_edge top
|
||||
symbol_map U+23FB-U+23FE,U+2665,U+26A1,U+2B58,U+E000-U+E00A,U+E0A0-U+E0A3,U+E0B0-U+E0C8,U+E0CA,U+E0CC-U+E0D2,U+E0D4,U+E200-U+E2A9,U+E300-U+E3E3,U+E5FA-U+E62F,U+E700-U+E7C5,U+F000-U+F2E0,U+F300-U+F31C,U+F400-U+F4A9,U+F500-U+F8FF Symbols Nerd Font
|
||||
remember_window_size yes
|
||||
initial_window_width 130c
|
||||
initial_window_height 35c
|
||||
copy_on_select yes
|
||||
|
||||
# BEGIN_KITTY_THEME
|
||||
# Atom One Light
|
||||
include current-theme.conf
|
||||
# END_KITTY_THEME
|
||||
EOF
|
||||
|
||||
function newest_wezterm_release() {
|
||||
curl -H "Accept: application/vnd.github+json" -L https://api.github.com/repos/wez/wezterm/releases/latest | jq -r '.assets | map(select(.name | startswith("WezTerm-macos"))) | first.browser_download_url'
|
||||
}
|
||||
|
@ -156,12 +129,34 @@ config.mouse_bindings = {
|
|||
return config
|
||||
EOF
|
||||
|
||||
curl -sw '%{url_effective}\n' -Lo "$HOME/.config/kitty/current-theme.conf" https://git.penguincoder.org/penguincoder/dotfiles/raw/branch/main/dot_config/kitty/current-theme.conf
|
||||
|
||||
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]
|
||||
|
@ -241,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/"
|
||||
|
||||
|
|
Loading…
Reference in New Issue