elas-arch-config/zsh/.zshrc
2024-07-22 22:18:54 +02:00

20 lines
566 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Source Prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Load the shell dotfiles
# extra.zsh can be used for settings you dont want to commit.
for file in ~/.zsh.d/*.zsh; do
source "$file"
done
# History navigation commands
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
# Start tmux for every terminal session
[[ -z "$TMUX" && $(tty) != /dev/tty[0-9] ]] && { tmux || exec tmux new-session && exit }
# Initiate zoxide
eval "$(zoxide init zsh)"