Files
dotfiles/roles/zsh/files/.zshrc
Johannes Knopp 4ae85ca347 update conf
2025-10-17 14:22:01 +02:00

53 lines
1.4 KiB
Bash

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
# Path to your Oh My Zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="bira"
zstyle ':omz:update' mode reminder # just remind me to update when it's time
COMPLETION_WAITING_DOTS="true"
plugins=(
git
zsh-syntax-highlighting
zsh-autosuggestions
fzf-zsh-plugin
)
source $ZSH/oh-my-zsh.sh
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
export DOTFILES_ZSH_DIR="$HOME/dotfiles/roles/zsh/files"
for zsh_file in "$DOTFILES_ZSH_DIR"/*.zsh; do
[[ -r "$zsh_file" ]] && source "$zsh_file"
done
# TODO source all files with .zsh suffix
# source ./aliases.zsh
# source ./dev_env.zsh
# source ./tools.zsh
# TODO
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
if [[ -n "$MACHINE_TYPE" && -f "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh" ]]; then
source "$HOME/dotfiles/zsh/hosts/$MACHINE_TYPE.zsh"
fi
alias drun='docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined'
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gcr/ssh"