irongit
dotzsh/after_plugins.sh
34 lines864 BBourne Again Shell (bash)
1# History
2export HISTFILE=~/.zsh_history
3export HISTSIZE=10000
4export SAVEHIST=10000
5setopt SHARE_HISTORY
6setopt HIST_IGNORE_DUPS
7setopt HIST_IGNORE_SPACE
8
9# Set nvim as default editor
10export EDITOR=nvim
11
12# Aliases
13alias l=lsd
14alias v=nvim
15alias nvm=fnm
16alias ll='lsd -l'
17alias pip='uv pip'
18alias yay=paru
19alias t='tmux attach || tmux'
20alias watchall='watchexec --no-vcs-ignore'
21
22# History substring search
23bindkey '^[[A' history-substring-search-up # or '\eOA'
24bindkey '^[[B' history-substring-search-down # or '\eOB'
25HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
26
27# Change tmux title
28if command -v tmux &>/dev/null; then
29 tmux set -g pane-border-format " #{pane_index} | #{pane_current_command} | $(whoami)@#[bold]$(hostname)#[nobold]:#{pane_current_path} " &>/dev/null
30fi
31
32
33# Use powerlevel10k
34[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh