[zsh] Fix delete wrong file
This commit is contained in:
1709
zsh/.p10k_shared.zsh
Normal file
1709
zsh/.p10k_shared.zsh
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,58 +0,0 @@
|
|||||||
export PATH="$HOME/.local/bin:$PATH"
|
|
||||||
[[ -z $SSH_AUTH_SOCK ]] || export FORWARD_SOCK=$SSH_AUTH_SOCK
|
|
||||||
|
|
||||||
[[ -f ~/.zsh/.powerline_config ]] && source ~/.zsh/.powerline_config
|
|
||||||
[[ -f ~/.zsh/.user_config ]] && source ~/.zsh/.user_config
|
|
||||||
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
|
|
||||||
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
|
|
||||||
[[ -f ~/.zsh/.os_config.zsh ]] && source ~/.zsh/.os_config.zsh
|
|
||||||
|
|
||||||
# Load Antidote
|
|
||||||
mkdir -p ${ZDOTDIR:-~}/.cache/zsh
|
|
||||||
static_file=${ZDOTDIR:-~}/.cache/zsh/.zsh_plugins.zsh
|
|
||||||
plugins_txt=${ZDOTDIR:-~}/.zsh/.zsh_plugins.txt
|
|
||||||
# clone antidote if necessary
|
|
||||||
if ! [[ -e ${ZDOTDIR:-~}/.antidote ]]; then
|
|
||||||
git clone https://github.com/mattmc3/antidote.git ${ZDOTDIR:-~}/.antidote
|
|
||||||
fi
|
|
||||||
|
|
||||||
zstyle ':omz:plugins:docker' legacy-completion yes
|
|
||||||
# source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt`
|
|
||||||
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
|
|
||||||
antidote load ${plugins_txt} ${static_file}
|
|
||||||
export SSH_REAL_SOCK=$SSH_AUTH_SOCK
|
|
||||||
[[ -z $FORWARD_SOCK ]] || export SSH_AUTH_SOCK=$FORWARD_SOCK
|
|
||||||
|
|
||||||
setopt interactivecomments
|
|
||||||
setopt HIST_IGNORE_SPACE
|
|
||||||
# Clear screen by ctrl+q
|
|
||||||
bindkey '^q' clear-screen
|
|
||||||
|
|
||||||
alias vim=nvim
|
|
||||||
alias sudo='sudo '
|
|
||||||
alias cgrep="grep --color=always"
|
|
||||||
export EDITOR='nvim'
|
|
||||||
# Vi mode
|
|
||||||
bindkey -v
|
|
||||||
VI_MODE_SET_CURSOR=true
|
|
||||||
|
|
||||||
alias ls="ls --color=always"
|
|
||||||
|
|
||||||
delzip() {
|
|
||||||
unzip -Z -1 "$@" | xargs -I{} rm -rf {}
|
|
||||||
}
|
|
||||||
# mitmproxy
|
|
||||||
export MITMPROXY_SSLKEYLOGFILE="~/.mitmproxy/sslkeylogfile.txt"
|
|
||||||
|
|
||||||
[[ -f ~/.zsh/.mac_config ]] && source ~/.zsh/.mac_config
|
|
||||||
|
|
||||||
# Powerlevel 10k
|
|
||||||
# Remove padding on right side
|
|
||||||
ZLE_RPROMPT_INDENT=0
|
|
||||||
|
|
||||||
# To customize prompt, run `p10k configure` or edit ~/dotfiles/zsh/.p10k.zsh.
|
|
||||||
if test -f ~/dotfiles/zsh/.p10k.mac.zsh; then
|
|
||||||
source ~/dotfiles/zsh/.p10k.mac.zsh
|
|
||||||
else
|
|
||||||
[[ ! -f ~/dotfiles/zsh/.p10k_shared.zsh ]] || source ~/dotfiles/zsh/.p10k_shared.zsh
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user