46 lines
938 B
Bash
Executable File
46 lines
938 B
Bash
Executable File
# Path to your oh-my-zsh installation.
|
|
export ZSH=$HOME/.oh-my-zsh
|
|
|
|
DEFAULT_USER="$USER"
|
|
|
|
plugins=(git)
|
|
|
|
# Editor
|
|
export EDITOR='nvim'
|
|
|
|
# Go
|
|
export GOPATH=$HOME/go
|
|
export PATH=$PATH:/usr/local/go/bin:$GOPATH/bin
|
|
|
|
# Local bin
|
|
export PATH="$PATH:$HOME/.local/bin:$HOME/bin"
|
|
|
|
# Node.js and NVM configuration
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
|
|
|
# Rust/Cargo
|
|
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
source $HOME/dotfiles/aliases.zsh
|
|
|
|
# SSH agent
|
|
if [ -z "$SSH_AGENT_PID" ]; then
|
|
eval "$(ssh-agent -s)"
|
|
ssh-add -A 2>/dev/null
|
|
fi
|
|
|
|
# Key timeout
|
|
export KEYTIMEOUT=1
|
|
|
|
# C++ include path
|
|
export CPLUS_INCLUDE_PATH=/usr/local/include
|
|
|
|
# FZF (if installed)
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
|
|
# Oh My Posh prompt
|
|
eval "$(oh-my-posh init zsh --config ~/.config/oh-my-posh/theme.omp.json)"
|