this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

zsh: starship config, enable direnv

+61 -54
+56 -54
setup.sh
··· 5 5 DOTFILES_DIR="$HOME/dotfiles" 6 6 7 7 function link_configs { 8 - echo "Linking configuration files..." 8 + echo "Linking configuration files..." 9 9 10 - declare -A mappings 10 + declare -A mappings 11 11 12 - # TODO: Make this linux compatible 13 - mappings["ghostty"]="$HOME/Library/Application Support/com.mitchellh.ghostty" 14 - mappings["zsh/zshenv"]="$HOME/.zshenv" 15 - mappings["zsh/zshrc"]="$HOME/.zshrc" 16 - mappings["misc/tmux.conf"]="$HOME/.tmux.conf" 17 - mappings["git/gitconfig"]="$HOME/.gitconfig" 18 - mappings["git/gitignore"]="$HOME/.gitignore" 19 - mappings["misc/vimrc"]="$HOME/.vimrc" 20 - mappings["nvim"]="$HOME/.config/nvim" 21 - mappings["glide"]="$HOME/.config/glide" 22 - mappings["misc/global-tool-versions"]="$HOME/.tool-versions" 23 - mappings["ai/skills"]="$HOME/.claude/skills" 12 + # TODO: Make this linux compatible 13 + mappings["ghostty"]="$HOME/Library/Application Support/com.mitchellh.ghostty" 14 + mappings["zsh/zshenv"]="$HOME/.zshenv" 15 + mappings["zsh/zshrc"]="$HOME/.zshrc" 16 + mappings["misc/tmux.conf"]="$HOME/.tmux.conf" 17 + mappings["git/gitconfig"]="$HOME/.gitconfig" 18 + mappings["git/gitignore"]="$HOME/.gitignore" 19 + mappings["misc/vimrc"]="$HOME/.vimrc" 20 + mappings["nvim"]="$HOME/.config/nvim" 21 + mappings["glide"]="$HOME/.config/glide" 22 + mappings["misc/global-tool-versions"]="$HOME/.tool-versions" 23 + mappings["ai/skills"]="$HOME/.claude/skills" 24 + mappings["hammerspoon"]="$HOME/.hammerspoon" 25 + mappings["zsh/starship.toml"]="$HOME/.config/starship.toml" 24 26 25 - for key in "${!mappings[@]}"; do 26 - source="${key}" 27 - destination="${mappings[$key]}" 27 + for key in "${!mappings[@]}"; do 28 + source="${key}" 29 + destination="${mappings[$key]}" 28 30 29 - if [ -d "$source" ]; then 30 - mkdir -p "$(dirname "$destination")" 31 - create_symlink "$source" "$destination" 32 - elif [ -f "$source" ]; then 33 - create_symlink "$source" "$destination" 34 - else 35 - echo "Warning: Source $source does not exist, skipping." 36 - fi 37 - done 31 + if [ -d "$source" ]; then 32 + mkdir -p "$(dirname "$destination")" 33 + create_symlink "$source" "$destination" 34 + elif [ -f "$source" ]; then 35 + create_symlink "$source" "$destination" 36 + else 37 + echo "Warning: Source $source does not exist, skipping." 38 + fi 39 + done 38 40 } 39 41 40 42 function create_symlink { 41 - local source="$1" 42 - local destination="$2" 43 + local source="$1" 44 + local destination="$2" 43 45 44 - echo "$source -> $destination" 46 + echo "$source -> $destination" 45 47 46 - if [ -L "$destination" ]; then 47 - if [ "$(readlink "$destination")" = "$DOTFILES_DIR/$source" ]; then 48 - echo " Already established" 49 - return 50 - else 51 - echo " Removing existing symlink ($(readlink "$destination"))" 52 - rm "$destination" 53 - fi 54 - fi 48 + if [ -L "$destination" ]; then 49 + if [ "$(readlink "$destination")" = "$DOTFILES_DIR/$source" ]; then 50 + echo " Already established" 51 + return 52 + else 53 + echo " Removing existing symlink ($(readlink "$destination"))" 54 + rm "$destination" 55 + fi 56 + fi 55 57 56 - if [ -e "$destination" ]; then 57 - echo " Destination exists, backing it up" 58 - mv "$destination" "${destination}.bak" 59 - fi 58 + if [ -e "$destination" ]; then 59 + echo " Destination exists, backing it up" 60 + mv "$destination" "${destination}.bak" 61 + fi 60 62 61 - echo " Creating symlink" 62 - ln -s "$DOTFILES_DIR/$source" "$destination" 63 + echo " Creating symlink" 64 + ln -s "$DOTFILES_DIR/$source" "$destination" 63 65 } 64 66 65 67 function install_oh_my_zsh { 66 - if [ -d "$HOME/.oh-my-zsh" ]; then 67 - echo "Oh My Zsh is already installed." 68 - return 69 - fi 70 - sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended 68 + if [ -d "$HOME/.oh-my-zsh" ]; then 69 + echo "Oh My Zsh is already installed." 70 + return 71 + fi 72 + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended 71 73 } 72 74 73 75 function install_tpm { 74 - if [ -d "$HOME/.tmux/plugins/tpm" ]; then 75 - echo "TPM is already installed." 76 - return 77 - fi 78 - git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm 76 + if [ -d "$HOME/.tmux/plugins/tpm" ]; then 77 + echo "TPM is already installed." 78 + return 79 + fi 80 + git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm 79 81 } 80 82 81 83 link_configs
+2
zsh/starship.toml
··· 1 + [direnv] 2 + disabled = false
+3
zsh/zshrc
··· 11 11 # fzf 12 12 source <(fzf --zsh) 13 13 14 + # direnv 15 + eval "$(direnv hook zsh)" 16 + 14 17 # 1password cli plugins 15 18 [ -f "/Users/sethetter/.config/op/plugins.sh" ] && source /Users/sethetter/.config/op/plugins.sh 16 19