/
/
/
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
8# Set up the prompt
9
10autoload -Uz promptinit
11promptinit
12prompt adam1
13
14setopt histignorealldups sharehistory
15
16# Use emacs keybindings even if our EDITOR is set to vi
17bindkey -e
18
19# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
20HISTSIZE=1000
21SAVEHIST=1000
22HISTFILE=~/.zsh_history
23
24# Use modern completion system
25autoload -Uz compinit
26compinit
27
28zstyle ':completion:*' auto-description 'specify: %d'
29zstyle ':completion:*' completer _expand _complete _correct _approximate
30zstyle ':completion:*' format 'Completing %d'
31zstyle ':completion:*' group-name ''
32zstyle ':completion:*' menu select=2
33eval "$(dircolors -b)"
34zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
35zstyle ':completion:*' list-colors ''
36zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
37zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
38zstyle ':completion:*' menu select=long
39zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
40zstyle ':completion:*' use-compctl false
41zstyle ':completion:*' verbose true
42
43zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
44zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
45
46zstyle ':completion:*' special-dirs true
47
48if [ -x /usr/bin/dircolors ]; then
49 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
50fi
51
52# eval "$(starship init zsh)"
53
54source ~/.powerlevel10k.zsh-theme
55source ~/.p10k.zsh
56
57export PROMPT_COMMAND='tmux set -g status-right "$(gitmux $PWD)" &> /dev/null'
58
59export GZ_VERSION="harmonic"
60
61#source /opt/ros/humble/setup.zsh
62#source /opt/ros/bgl_humble/setup.zsh
63#source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.zsh
64
65source "/home/${USER}/.aliases"
66#eval "$(register-python-argcomplete3 ros2)"
67# eval "$(register-python-argcomplete3 colcon)"
68
69eval "$(zoxide init --cmd cd zsh)"
70
71bindkey "^[[1;5C" forward-word
72bindkey "^[[1;5D" backward-word
73
74[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
75
76alias docker-term="gnome-terminal --title='Docker tmux' -e 'tmux'"
77
78export PATH="$HOME/.local/bin:$PATH"
79