Skip to content

Commit

Permalink
Fixes for mac and nas
Browse files Browse the repository at this point in the history
  • Loading branch information
erichlf committed May 3, 2024
1 parent 0f9fad2 commit c6002db
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
1 change: 1 addition & 0 deletions my-home/dot-zshrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# automatically run `zgenom reset` if we modify our .zshrc
ZGEN_COMPINIT_FLAGS="-u"
ZGEN_RESET_ON_CHANGE=("${HOME}/.zshrc")

# load zgenom
Expand Down
8 changes: 6 additions & 2 deletions scripts/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@ source "$DOTFILES_DIR/scripts/utils.sh"

print_details "$SYSTEM"

sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew install neovim fzf starship stow gpg
brew doctor
brew cleanup

chsh -s /bin/zsh
brew install neovim fzf starship stow gpg

git submodule init
git submodule update
Expand Down
6 changes: 4 additions & 2 deletions scripts/nas.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
SYSTEM="NAS"
DOTFILES_DIR=$(pwd)

source utils.sh
source "$DOTFILES_DIR/scripts/utils.sh"

print_details

function stow(){
for f in $1/*; do
ln -sf $f $2/$(echo $(basename $f) | sed -r 's/dot-/./')
link="$2/$(echo $(basename $f) | sed -r 's/dot-/./')"
unlink $link
ln -sf $f $link
done

return 0
Expand Down
7 changes: 5 additions & 2 deletions scripts/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,12 @@ function sudo_rule(){
# setup fzf
function fzf_install(){
mkdir -p $HOME/.local/bin
rm -rf $HOME/.fzf
git clone --depth 1 https://github.com/junegunn/fzf.git $HOME/.fzf
./$HOME/.fzf/install --bin
cp $HOME/fzf/bin* $HOME/.local/bin/
cd $HOME/.fzf
./install --bin
cp bin/* $HOME/.local/bin/
cd -
}

# install lazygit
Expand Down

0 comments on commit c6002db

Please sign in to comment.