echo "Linking runcoms"
# hush login
-ln -fhs .dotfiles/hushlogin ~/.hushlogin
+ln -fns .dotfiles/hushlogin ~/.hushlogin
# zsh runcoms
-ln -fhs .dotfiles/runcoms/zshrc ~/.zshrc
-ln -fhs .dotfiles/runcoms/zshenv ~/.zshenv
-ln -fhs .dotfiles/runcoms/zprofile ~/.zprofile
-ln -fhs .dotfiles/runcoms/zlogout ~/.zlogout
-ln -fhs .dotfiles/runcoms/zlogin ~/.zlogin
+ln -fns .dotfiles/runcoms/zshrc ~/.zshrc
+ln -fns .dotfiles/runcoms/zshenv ~/.zshenv
+ln -fns .dotfiles/runcoms/zprofile ~/.zprofile
+ln -fns .dotfiles/runcoms/zlogout ~/.zlogout
+ln -fns .dotfiles/runcoms/zlogin ~/.zlogin
# Weechat
-ln -fhs .dotfiles/weechat ~/.weechat
+ln -fns .dotfiles/weechat ~/.weechat
# VIM
-ln -fhs .dotfiles/vim ~/.vim
-ln -fhs .dotfiles/vimrc ~/.vimrc
+ln -fns .dotfiles/vim ~/.vim
+ln -fns .dotfiles/vimrc ~/.vimrc
# TMUX
-ln -fhs .dotfiles/tmux.conf ~/.tmux.conf
+ln -fns .dotfiles/tmux.conf ~/.tmux.conf
# Nethack
-ln -fhs .dotfiles/nethackrc ~/.nethackrc
+ln -fns .dotfiles/nethackrc ~/.nethackrc
# Git
-ln -fhs .dotfiles/gitconfig ~/.gitconfig
+ln -fns .dotfiles/gitconfig ~/.gitconfig
# Ctags
-ln -fhs .dotfiles/ctags.d ~/.ctags.d
+ln -fns .dotfiles/ctags.d ~/.ctags.d
# XDefaults
-ln -fhs .dotfiles/XDefaults ~/.XDefaults
+ln -fns .dotfiles/XDefaults ~/.XDefaults
# ripgrep
-ln -fhs .dotfiles/rgignore ~/.rgignore
+ln -fns .dotfiles/rgignore ~/.rgignore
# tmuxp
-ln -fhs .dotfiles/tmuxp ~/.tmuxp
+ln -fns .dotfiles/tmuxp ~/.tmuxp
# config dir
mkdir -p ~/.config
# kitty
-ln -fhs ../.dotfiles/config/kitty ~/.config/kitty
+ln -fns ../.dotfiles/config/kitty ~/.config/kitty
# nvim
-ln -fhs ../.dotfiles/config/nvim ~/.config/nvim
+ln -fns ../.dotfiles/config/nvim ~/.config/nvim
# config
-ln -fhs ../.dotfiles/config/karabiner ~/.config/karabiner
+ln -fns ../.dotfiles/config/karabiner ~/.config/karabiner
# Italics setup
echo "Setting up terminfo"
export GPG_TTY=$(tty)
# FZF Config
-export FZF_DEFAULT_COMMAND='/usr/local/bin/rg --color never --files --hidden -g \!.git'
+export FZF_DEFAULT_COMMAND='/usr/bin/env rg --color never --files --hidden -g \!.git'
export FZF_DEFAULT_OPTS='--preview ''bat --style=numbers --color=always {} | head -500'''
# Z
source "${ZDOTDIR:-$HOME}/.zshrc.local"
fi
-eval $(/usr/libexec/path_helper -s)
+if command -v brew &> /dev/null; then
+ eval $(/usr/libexec/path_helper -s)
+fi
# ASDF
-. $(brew --prefix asdf)/asdf.sh
+if ! command -v brew &> /dev/null; then
+ . $HOME/.asdf/asdf.sh
+else
+ . $(brew --prefix asdf)/asdf.sh
+fi