setting up a new mac laptop

master
Jordan Orelli 6 months ago
parent 8f89531a3c
commit 0ebc537fe3

@ -5,3 +5,4 @@ fi
if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
source "$HOME/.nix-profile/etc/profile.d/nix.sh" source "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi # added by Nix installer fi # added by Nix installer
. "$HOME/.cargo/env"

@ -67,7 +67,13 @@ fi
# if kitty is installed, register its completions # if kitty is installed, register its completions
if command -v kitty &> /dev/null if command -v kitty &> /dev/null
then then
source <(kitty + complete setup bash) # This is a little annoying but the version of Bash on MacOS is so old that
# it doesn't have process substitution
KITTY_COMPLETION_FILE=$(mktemp)
kitty + complete setup bash > "$KITTY_COMPLETION_FILE"
source "$KITTY_COMPLETION_FILE"
rm "$KITTY_COMPLETION_FILE"
unset KITTY_COMPLETION_FILE
fi fi
# sometimes I just put binary files in a bin dir in my home directory. Is this # sometimes I just put binary files in a bin dir in my home directory. Is this

@ -0,0 +1,3 @@
[user]
name = Jordan Orelli
email = jordanorelli@gmail.com

@ -1,6 +1,12 @@
[run submodules] [run submodules]
when: host.has('git')
cmd: git submodule init cmd: git submodule init
[home git-prefs]
when: host.has('git')
files:
.gitconfig
[home bash-prefs] [home bash-prefs]
when: host.has('bash') when: host.has('bash')
files: files:
@ -19,6 +25,12 @@ files:
when: host.has('kitty') when: host.has('kitty')
files: files:
kitty/kitty.conf > .config/kitty/kitty.conf kitty/kitty.conf > .config/kitty/kitty.conf
# We only need the kitty.desktop config on linux, that's like a linux desktop
# manager thing
[home kitty-desktop]
when: host.has('kitty') and host.is_linux
files:
desktop/kitty.desktop > .local/share/applications/kitty.desktop desktop/kitty.desktop > .local/share/applications/kitty.desktop
[link-files rofi] [link-files rofi]
@ -51,10 +63,10 @@ files:
nvim/lua nvim/lua
nvim/init.vim nvim/init.vim
# [git vundle] [git vundle]
# when: host.has('vim') or host.has('nvim') when: host.has('vim') or host.has('nvim')
# repo: https://github.com/VundleVim/Vundle.vim.git repo: https://github.com/VundleVim/Vundle.vim.git
# target: ~/.vim/bundle/Vundle.vim target: ~/.vim/bundle/Vundle.vim
[git packer-posix] [git packer-posix]
when: not host.is_windows when: not host.is_windows

Loading…
Cancel
Save