Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
timmermansjoy committed Sep 9, 2024
2 parents 1a05019 + e2c59cd commit 91e6469
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 37 deletions.
5 changes: 0 additions & 5 deletions basic/shell/index.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,3 @@ zstyle ':completion:*' insert-tab pending
source $DOTFILES/basic/shell/custom.sh

chpwd() ls -F




plugins=(zsh-autosuggestions)
30 changes: 13 additions & 17 deletions scripts/dependencies-install-linux.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
#!/bin/bash
#

sudo apt update

# run all dotfiles installers
export DOTFILES="$HOME/.dotfiles"

sudo apt update
cd "$(dirname "$0")"/.. || exit
find -H "$DOTFILES" -maxdepth 4 -name 'install.sh' -not -path '*.git*' -exec sh -c 'FILE="$1"; "$FILE"' _ {} \;

#zsh autosugest
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions
info "adding zsh extensions"
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting

info "adding vscode repo"
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"

info "installing docker"
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository -y "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
sudo apt install -y docker-ce
sudo usermod -aG docker "${USER}"

info "install the packages inside specific/linux/packages.txt"
xargs sudo apt -y -qq install <~/.dotfiles/specific/linux/packages.txt
xargs sudo apt -y -qq install < ~/.dotfiles/specific/linux/packages.txt

info "installing lambda stack"
wget -nv -O- https://lambdalabs.com/install-lambda-stack.sh | sh -


# run all dotfiles installers
export DOTFILES="$HOME/.dotfiles"

cd "$(dirname "$0")"/.. || exit
find -H "$DOTFILES" -maxdepth 4 -name 'install.sh' -not -path '*.git*' -exec sh -c 'FILE="$1"; "$FILE"' _ {} \;
24 changes: 12 additions & 12 deletions scripts/dotfiles-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,18 +138,18 @@ else
fail "error installing dependencies"
fi

#install packages on linux
# if [[ "$(uname)" == "Linux" ]]; then
# info "installing packages"
# if source ~/.dotfiles/scripts/dependencies-install-linux.sh
# then
# success "packages installed"
# info "setting zsh as default shell"
# chsh -s "$(command -v zsh)"
# else
# fail "error installing dependencies"
# fi
# fi
install packages on linux
if [[ "$(uname)" == "Linux" ]]; then
info "installing packages"
if source ~/.dotfiles/scripts/dependencies-install-linux.sh
then
success "packages installed"
info "setting zsh as default shell"
chsh -s "$(command -v zsh)"
else
fail "error installing dependencies"
fi
fi

info "setting up ssh"
if [[ ! -f ~/.ssh/id_rsa ]]; then
Expand Down
4 changes: 4 additions & 0 deletions specific/homebrew/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# This installs some of the common dependencies needed (or at least desired)
# using Homebrew.

if [[ "$(uname)" == "Darwin" ]]; then

# Check for Homebrew
if test ! "$(command -v brew)"; then
echo " Installing Homebrew for you."
Expand All @@ -19,3 +21,5 @@ brew bundle --file="~/.dotfiles/specific/homebrew/Brewfile"
# For debugging
# brew bundle --verbose --file="specific/homebrew/Brewfile"
exit 0

fi
1 change: 0 additions & 1 deletion specific/linux/packages.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ vim
tmux
htop
neofetch
zsh-syntax-highlighting
code
4 changes: 2 additions & 2 deletions specific/oh-my-zsh/index.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ if [[ "$(uname)" == "Darwin" ]]; then
fi
# Link zsh plugin in linux
if [[ "$(uname)" == "Linux" ]]; then
source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
fi

0 comments on commit 91e6469

Please sign in to comment.