compctl -g '*.tar.bz2 *.tar.gz *.bz2 *.gz *.jar *.rar *.tar *.tbz2 *.tgz *.zip *.Z' + -g '*(-/)' extractextract() { if [[ -z "$1" ]] ; then print -P "usage: \\e[1;36mextract\\e[1;0m < filename >" print -P " Extract the file specified based on the...
if [[ ! -e ${ZIM_HOME}/zimfw.zsh ]]; then curl -fsSL --create-dirs -o ${ZIM_HOME}/zimfw.zsh \ https://github.com/zimfw/zimfw/releases/latest/download/zimfw.zsh fi Or if you use wget instead of curl: # Download zimfw plugin manager if missing. if [[ ! -e ${ZIM_HOME}/zi...
# Do nothing here: return the exit code of the if.} # Return True iff the argument denotes a function name._zsh_highlight__is_function_p() { if zmodload -e zsh/parameter; then (( ${+functions[$1]} )) else [[ $(type -wa -- "$1") == *'function'* ]] ...
# Do nothing here: return the exit code of the if.} # Return True iff the argument denotes a function name._zsh_highlight__is_function_p() { if zmodload -e zsh/parameter; then (( ${+functions[$1]} )) else [[ $(type -wa -- "$1") == *'function'* ]] ...
# if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though ...
else error "could not find /etc/shells file. Change your default shell manually." return fi # Get the path to the right zsh binary # 1. Use the most preceding one based on $PATH, then check that it's in the shells file # 2. If that fails, get a zsh path from the shells file...
If you supply an argument that is a directory, yazi is opened in that directory. But if you supply anything else as an argument, zoxide is called with the argument and yazi is opened there. yeoman - Edouard Lopez's Yeoman plugin for oh-my-zsh, compatible with yeoman version ≥1.0 (...
EN包括:break、case、catch、continue、default、delete、do、else、finally、for、function、if、in、...
if [[ -n "$INSIDE_EMACS" ]]; then plugins=(git) ZSH_THEME="simple" else ZSH_THEME="compact-grey" fi 通过在本地 ~/.ssh/config 文件中将 INSIDE_EMACS 变量设置为 SendEnv 变量…… Host myhost SendEnv INSIDE_EMACS ……同时在 ssh 服务器的 /etc/ssh/sshd_config 中设置为 AcceptEnv 变量…...
# Do nothing here: return the exit code of the if.} # Return True iff the argument denotes a function name._zsh_highlight__is_function_p() { if zmodload -e zsh/parameter; then (( ${+functions[$1]} )) else [[ $(type -wa -- "$1") == *'function'* ]] ...