irongit
dotzsh/config.sh
33 lines821 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'
20
21# History substring search
22bindkey '^[[A' history-substring-search-up # or '\eOA'
23bindkey '^[[B' history-substring-search-down # or '\eOB'
24HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=1
25
26# Change tmux title
27if command -v tmux &>/dev/null; then
28 tmux set -g pane-border-format " #{pane_index} | #{pane_current_command} | $(whoami)@#[bold]$(hostname)#[nobold]:#{pane_current_path} " &>/dev/null
29fi
30
31
32# Use powerlevel10k
33[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh