add linux zsh plugins
This commit is contained in:
19
setup.sh
19
setup.sh
@@ -19,7 +19,7 @@ if [ "$OSTYPE" = "Linux" ]; then
|
|||||||
echo "Unknown package manager, continuing..."
|
echo "Unknown package manager, continuing..."
|
||||||
fi
|
fi
|
||||||
elif [ "$OSTYPE" = "Darwin" ]; then
|
elif [ "$OSTYPE" = "Darwin" ]; then
|
||||||
mkdir ~/Developer
|
mkdir -p ~/Developer
|
||||||
echo "Install Homebrew? [y/n]"
|
echo "Install Homebrew? [y/n]"
|
||||||
read homebrew
|
read homebrew
|
||||||
if [ "$homebrew" = "y" ]; then
|
if [ "$homebrew" = "y" ]; then
|
||||||
@@ -27,18 +27,29 @@ elif [ "$OSTYPE" = "Darwin" ]; then
|
|||||||
echo "Restore from Brewfile? [y/n]"
|
echo "Restore from Brewfile? [y/n]"
|
||||||
read bundle
|
read bundle
|
||||||
if [ "$bundle" = "y" ]; then
|
if [ "$bundle" = "y" ]; then
|
||||||
brew bundle install --file=
|
brew bundle install
|
||||||
else
|
else
|
||||||
brew install coreutils fastfetch vim zsh jq python3 zsh-autosuggestions zsh-syntax-highlighting
|
brew install coreutils fastfetch vim zsh jq python3
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Clone zsh plugins
|
||||||
|
PLUGIN_DIR="$HOME/.zsh/plugins"
|
||||||
|
mkdir -p "$PLUGIN_DIR"
|
||||||
|
if [ ! -d "$PLUGIN_DIR/zsh-autosuggestions" ]; then
|
||||||
|
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions "$PLUGIN_DIR/zsh-autosuggestions"
|
||||||
|
fi
|
||||||
|
if [ ! -d "$PLUGIN_DIR/zsh-syntax-highlighting" ]; then
|
||||||
|
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting "$PLUGIN_DIR/zsh-syntax-highlighting"
|
||||||
|
fi
|
||||||
|
|
||||||
# silence login message
|
# silence login message
|
||||||
touch ~/.hushlogin
|
touch ~/.hushlogin
|
||||||
|
|
||||||
# remove common files and symlink new files
|
# remove common files and symlink new files
|
||||||
rm -r ~/.zshrc ~/.vimrc ~/.tmux.conf ~/.zsh.d ~/.gitconfig ~/.gitignore_global
|
rm -f ~/.zshrc ~/.vimrc ~/.tmux.conf ~/.gitconfig ~/.gitignore_global
|
||||||
|
rm -rf ~/.zsh.d
|
||||||
mkdir ~/.zsh.d
|
mkdir ~/.zsh.d
|
||||||
ln -s ~/dotfiles/zsh/aliases ~/.zsh.d/aliases
|
ln -s ~/dotfiles/zsh/aliases ~/.zsh.d/aliases
|
||||||
ln -s ~/dotfiles/zsh/functions ~/.zsh.d/functions
|
ln -s ~/dotfiles/zsh/functions ~/.zsh.d/functions
|
||||||
|
|||||||
@@ -1,8 +1,3 @@
|
|||||||
# Git
|
|
||||||
alias gcl='git clone'
|
|
||||||
alias gp='git push'
|
|
||||||
alias gs='git status'
|
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
alias ll='ls -lah'
|
alias ll='ls -lah'
|
||||||
alias l='ls -CF'
|
alias l='ls -CF'
|
||||||
|
|||||||
16
zsh/zshrc
16
zsh/zshrc
@@ -60,16 +60,14 @@ fi
|
|||||||
|
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
# set up iterm integration
|
# set up iterm integration
|
||||||
source ~/.iterm2_shell_integration.zsh
|
[[ -f ~/.iterm2_shell_integration.zsh ]] && source ~/.iterm2_shell_integration.zsh
|
||||||
# source homebrew
|
# source homebrew
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
# plugins
|
|
||||||
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
||||||
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Added by LM Studio CLI (lms)
|
# Plugins (cloned into ~/.zsh/plugins by setup.sh)
|
||||||
export PATH="$PATH:/Users/smparkin/.cache/lm-studio/bin"
|
PLUGIN_DIR="$HOME/.zsh/plugins"
|
||||||
|
[[ -f "$PLUGIN_DIR/zsh-autosuggestions/zsh-autosuggestions.zsh" ]] && \
|
||||||
# Created by `pipx` on 2025-02-08 01:15:05
|
source "$PLUGIN_DIR/zsh-autosuggestions/zsh-autosuggestions.zsh"
|
||||||
export PATH="$PATH:/Users/smparkin/.local/bin"
|
[[ -f "$PLUGIN_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]] && \
|
||||||
|
source "$PLUGIN_DIR/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
|
||||||
|
|||||||
Reference in New Issue
Block a user