Compare commits
No commits in common. "0fc43e1563fca11886a89d90432b1651cf44d843" and "a768bf308fcf619e9db2a364f9eaaa4bdbe3afbd" have entirely different histories.
0fc43e1563
...
a768bf308f
@ -1,18 +1,19 @@
|
|||||||
# Set $PATH
|
# Set $PATH
|
||||||
# Put only directories in $PATH that exist and remove duplicates
|
# Put only directories in $PATH that exist and remove duplicates
|
||||||
typeset -U path # No duplicates
|
typeset -U path # No duplicates
|
||||||
path=()
|
path=()
|
||||||
|
|
||||||
_prepath() {
|
_prepath() {
|
||||||
for dir in "$@"; do
|
for dir in "$@"; do
|
||||||
dir=${dir:A}
|
dir=${dir:A}
|
||||||
[[ ! -d "$dir" ]] && return
|
[[ ! -d "$dir" ]] && return
|
||||||
path=("$dir" $path)
|
#path=("$dir" $path[@])
|
||||||
done
|
path=("$dir" $path)
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
_prepath /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/sbin # BSD and macOS
|
_prepath /usr/bin /bin /usr/sbin /sbin /usr/local/bin /usr/local/sbin # BSD and macOS
|
||||||
_prepath /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin # Homebrew on macOS
|
_prepath /opt/homebrew/bin /opt/homebrew/sbin /usr/local/bin # Homebrew on macOS
|
||||||
_prepath ~/bin ~/.local/bin # $HOME
|
_prepath ~/bin ~/.local/bin # $HOME
|
||||||
|
|
||||||
unfunction _prepath
|
unfunction _prepath
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
## Command history configuration
|
## Command history configuration
|
||||||
export HISTFILE="${ZCACHE}/history"
|
HISTFILE="${ZCACHE}/history"
|
||||||
export HISTSIZE=1000000000
|
HISTSIZE=1000000000
|
||||||
export SAVEHIST=${HISTSIZE}
|
SAVEHIST=1000000000
|
||||||
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
|
|
||||||
|
|
||||||
export HISTTIMEFORMAT="[%F %T] "
|
export HISTTIMEFORMAT="[%F %T] "
|
||||||
setopt INC_APPEND_HISTORY
|
setopt INC_APPEND_HISTORY
|
||||||
@ -13,4 +12,5 @@ setopt hist_verify
|
|||||||
setopt incappendhistory
|
setopt incappendhistory
|
||||||
setopt histignorespace
|
setopt histignorespace
|
||||||
setopt histnostore
|
setopt histnostore
|
||||||
setopt share_history
|
setopt share_history
|
||||||
|
export HISTORY_IGNORE="([bf]g *|disown|cd ..|cd -)"
|
@ -19,9 +19,9 @@ plugin_repos=(
|
|||||||
rupa/z # Tracks your most used directories, based on 'frecency'.
|
rupa/z # Tracks your most used directories, based on 'frecency'.
|
||||||
Skylor-Tang/auto-venv # Automatically activates the Python virtual environment in the current directory or its parent directories.
|
Skylor-Tang/auto-venv # Automatically activates the Python virtual environment in the current directory or its parent directories.
|
||||||
|
|
||||||
zsh-users/zsh-autosuggestions
|
|
||||||
zsh-users/zsh-syntax-highlighting
|
zsh-users/zsh-syntax-highlighting
|
||||||
zsh-users/zsh-history-substring-search
|
zsh-users/zsh-history-substring-search
|
||||||
|
zsh-users/zsh-autosuggestions
|
||||||
)
|
)
|
||||||
|
|
||||||
# load plugins
|
# load plugins
|
||||||
|
Loading…
Reference in New Issue
Block a user