setting up a new mac laptop

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

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

@ -67,7 +67,13 @@ fi
# if kitty is installed, register its completions
if command -v kitty &> /dev/null
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
# 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]
when: host.has('git')
cmd: git submodule init
[home git-prefs]
when: host.has('git')
files:
.gitconfig
[home bash-prefs]
when: host.has('bash')
files:
@ -19,6 +25,12 @@ files:
when: host.has('kitty')
files:
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
[link-files rofi]
@ -51,10 +63,10 @@ files:
nvim/lua
nvim/init.vim
# [git vundle]
# when: host.has('vim') or host.has('nvim')
# repo: https://github.com/VundleVim/Vundle.vim.git
# target: ~/.vim/bundle/Vundle.vim
[git vundle]
when: host.has('vim') or host.has('nvim')
repo: https://github.com/VundleVim/Vundle.vim.git
target: ~/.vim/bundle/Vundle.vim
[git packer-posix]
when: not host.is_windows

Loading…
Cancel
Save