60 lines
1.6 KiB
Bash
60 lines
1.6 KiB
Bash
export LC_ALL=en_US.UTF-8
|
|
export LANG=en_US.UTF-8
|
|
|
|
plug "jeffreytse/zsh-vi-mode"
|
|
plug "wbingli/zsh-wakatime"
|
|
# plug "zap-zsh/supercharge"
|
|
plug "zsh-users/zsh-autosuggestions"
|
|
plug "zsh-users/zsh-syntax-highlighting" "122dc46"
|
|
|
|
# User configuration
|
|
export DOT="~/.dotfiles"
|
|
alias vim='vim -S ~/.vimrc'
|
|
alias nvim='nvim'
|
|
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
|
|
|
|
export EDITOR="$VISUAL"
|
|
export VISUAL='nvim'
|
|
export PYTHONPATH="/opt/homebrew/bin/python3:$PYTHONPATH"
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
|
eval "$(pyenv virtualenv-init -)"
|
|
|
|
# Function to Correctly Source $VIRTUAL_ENV for Neovim
|
|
function nvimvenv {
|
|
if [[ -e "$VIRTUAL_ENV" && -f "$VIRTUAL_ENV/bin/activate" ]]; then
|
|
source "$VIRTUAL_ENV/bin/activate"
|
|
command nvim "$@"
|
|
deactivate
|
|
else
|
|
command nvim "$@"
|
|
fi
|
|
}
|
|
|
|
alias nvim=nvimvenv
|
|
|
|
# alias nvim-minimal="NVIM_APPNAME=Minivim nvim"
|
|
# alias nvim-arduino="NVIM_APPNAME=Arduino nvim"
|
|
|
|
#function nvims() {
|
|
# items=("Main" "Minivim" "Arduinvim")
|
|
# config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config " --height=~50% --layout=reverse --border --exit-0)
|
|
# if [[ -z $config ]]; then
|
|
# echo "Nothing selected"
|
|
# return 0
|
|
# elif [[ $config == "Main" ]]; then
|
|
# config=""
|
|
# fi
|
|
# NVIM_APPNAME=$config nvim $@
|
|
#}
|
|
#bindkey -s ^a "nvims\n"
|
|
|
|
# source /Users/normrasmussen/.docker/init-zsh.sh || true # Added by Docker Desktop
|
|
# export PATH="$PATH:$HOME/.rvm/bin"
|
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
export PATH="/opt/homebrew/sbin:$PATH"
|
|
export PATH="/opt/homebrew/bin:$PATH"
|
|
eval "$(starship init zsh)"
|
|
source ~/.dotfiles/zsh/.zshrc
|