/
/
/
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
48alias ll='ls -alF'
49alias la='ls -A'
50alias l='ls -CF'
51
52# enable color support of ls and also add handy aliases
53if [ -x /usr/bin/dircolors ]; then
54 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
55 alias ls='ls --color=auto'
56 #alias dir='dir --color=auto'
57 #alias vdir='vdir --color=auto'
58
59 alias grep='grep --color=auto'
60 alias fgrep='fgrep --color=auto'
61 alias egrep='egrep --color=auto'
62fi
63
64# eval "$(starship init zsh)"
65
66source ~/personal/misc_code/powerlevel10k/powerlevel10k.zsh-theme
67source ~/.p10k.zsh
68
69export PATH="/home/${USER}/.local/opt/nvim-linux64/bin:/home/${USER}/.local/bin:$PATH"
70
71# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
72[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
73
74# alias gcb='git symbolic-ref --short HEAD | grep -o "AMR-[0-9]\{1,3\}" | xargs -I % sh -c "git commit -m \"%: \$0\""'
75
76export PROMPT_COMMAND='tmux set -g status-right "$(gitmux $PWD)" &> /dev/null'
77
78export GZ_VERSION="harmonic"
79
80#source /opt/ros/humble/setup.zsh
81#source /opt/ros/bgl_humble/setup.zsh
82#source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.zsh
83
84source "/home/${USER}/.aliases"
85#eval "$(register-python-argcomplete3 ros2)"
86# eval "$(register-python-argcomplete3 colcon)"
87
88eval "$(zoxide init --cmd cd zsh)"
89
90bindkey "^[[1;5C" forward-word
91bindkey "^[[1;5D" backward-word
92
93[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
94
95alias docker-term="gnome-terminal --title='Docker tmux' -e 'tmux'"
96
97export PATH="$HOME/.local/bin:$PATH"
98