some changes again..
This commit is contained in:
parent
47a2952674
commit
71f8167a22
3 changed files with 418 additions and 49 deletions
48
.zshdef
48
.zshdef
|
@ -28,6 +28,16 @@ echo_info() {
|
|||
|
||||
# ─< proxy config >───────────────────────────────────────────────────────────────────────
|
||||
proxy() {
|
||||
case "$1" in
|
||||
--show)
|
||||
echo {"http: $http_proxy, $HTTP_PROXY"
|
||||
"https: $https_proxy, $HTTPS_PROXY"}
|
||||
;;
|
||||
*)
|
||||
echo "You entered something wrong!"
|
||||
;;
|
||||
esac
|
||||
|
||||
local ip="172.22.11.69"
|
||||
local port="8080"
|
||||
|
||||
|
@ -38,9 +48,9 @@ proxy() {
|
|||
export https_proxy="http://$ip:$port"
|
||||
export HTTP_PROXY="http://$ip:$port"
|
||||
export HTTPS_PROXY="http://$ip:$port"
|
||||
echo_info "Proxy set to: http://$ip:$port"
|
||||
echo_info "Proxy set to: http://$ip:$port" || echo "Proxy set to: http://$ip:$port"
|
||||
else
|
||||
echo_error "IP $ip with port $port is not reachable."
|
||||
echo_error "IP $ip with port $port is not reachable." || echo "IP $ip with port $port is not reachable."
|
||||
fi
|
||||
|
||||
alias proxy='echo "http: $HTTP_PROXY"; echo "https: $HTTPS_PROXY"'
|
||||
|
@ -50,37 +60,3 @@ proxy() {
|
|||
noproxy() {
|
||||
unset {HTTP_PROXY,HTTPS_PROXY,http_proxy,https_proxy}
|
||||
}
|
||||
|
||||
# Load completions
|
||||
autoload -Uz compinit && compinit
|
||||
|
||||
bindkey -e
|
||||
|
||||
# # Define custom word style that treats special characters as word boundaries
|
||||
autoload -Uz select-word-style
|
||||
select-word-style bash
|
||||
|
||||
setopt appendhistory
|
||||
setopt sharehistory
|
||||
setopt hist_ignore_space
|
||||
setopt hist_ignore_all_dups
|
||||
setopt hist_save_no_dups
|
||||
setopt hist_ignore_dups
|
||||
setopt hist_find_no_dups
|
||||
|
||||
# Huge history. Doesn't appear to slow things down, so why not?
|
||||
HISTSIZE=500000
|
||||
HISTFILESIZE=100000
|
||||
|
||||
HISTFILE=~/.zsh_history
|
||||
SAVEHIST=$HISTSIZE
|
||||
HISTDUP=erase
|
||||
# Completion styling
|
||||
zstyle :compinstall filename "$HOME/.zshrc"
|
||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||
# zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||
zstyle ':completion:*' menu no
|
||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
||||
setopt autocd notify
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue