Open seyyeDevops opened 1 day ago
.zshrc
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi
export ZSH="$HOME/.oh-my-zsh"
ZSH_TMUX_AUTOSTART=true ZSH_TMUX_DEFAULT_SESSION_NAME=Working
if command -v tmux &> /dev/null; then if [[ -z "$TMUX" ]]; then tmux new-session -A -s "$ZSH_TMUX_DEFAULT_SESSION_NAME" fi fi
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting fast-syntax-highlighting zsh-autocomplete colored-man-pages) source $ZSH/oh-my-zsh.sh
if [ -x "$(command -v exa)" ]; then alias ls="exa" alias la="exa --long --all --group" fi
p10k configure
or edit ~/.p10k.zsh.[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export http_proxy='http://192.168.254.1:3128' export https_proxy='http://192.168.254.1:3128'
alias hh=hstr # hh to be alias for hstr setopt histignorespace # skip cmds w/ leading space from history export HSTR_CONFIG=hicolor # get more colors bindkey -s "\C-r" "\C-a hstr -- \C-j" # bind hstr to Ctrl-r (for Vi mode check doc)
in the .zshrc there are some bugs also add hstr: bash and zsh shell history suggest box