/
/
/
My dotfile repo. It sets aliases and installs generic applications for my user.
1# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
2# Initialization code that may require console input (password prompts, [y/n]
3# confirmations, etc.) must go above this block; everything else may go below.
4if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
5 source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
6fi
7
8export PATH="$HOME/.local/bin:$PATH"
9
10# Set up the prompt
11autoload -Uz promptinit
12promptinit
13prompt adam1
14
15setopt histignorealldups sharehistory
16
17# Use emacs keybindings even if our EDITOR is set to vi
18bindkey -e
19
20# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
21HISTSIZE=3000
22SAVEHIST=3000
23HISTFILE=~/.zsh_history
24
25# Use modern completion system
26autoload -Uz compinit
27compinit
28
29zstyle ':completion:*' auto-description 'specify: %d'
30zstyle ':completion:*' completer _expand _complete _correct _approximate
31zstyle ':completion:*' format 'Completing %d'
32zstyle ':completion:*' group-name ''
33zstyle ':completion:*' menu select=2
34eval "$(dircolors -b)"
35zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
36zstyle ':completion:*' list-colors ''
37zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
38zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
39zstyle ':completion:*' menu select=long
40zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
41zstyle ':completion:*' use-compctl false
42zstyle ':completion:*' verbose true
43
44zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
45zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
46
47zstyle ':completion:*' special-dirs true
48
49if [ -x /usr/bin/dircolors ]; then
50 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
51fi
52
53# eval "$(starship init zsh)"
54
55source ~/.powerlevel10k.zsh-theme
56source ~/.p10k.zsh
57
58export PROMPT_COMMAND='tmux set -g status-right "$(gitmux $PWD)" &> /dev/null'
59
60source "/home/${USER}/.aliases"
61
62eval "$(zoxide init --cmd cd zsh)"
63
64bindkey "^[[1;5C" forward-word
65bindkey "^[[1;5D" backward-word
66
67[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
68
69alias docker-term="gnome-terminal --title='Docker tmux' -e 'tmux'"
70
71