代码拉取完成,页面将自动刷新
同步操作将从 Gitee 极速下载/z.lua 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /usr/bin/env fish
if test -z "$XDG_DATA_HOME"
set -U _ZL_DATA_DIR "$HOME/.local/share/zlua"
else
set -U _ZL_DATA_DIR "$XDG_DATA_HOME/zlua"
end
set -x _ZL_DATA "$_ZL_DATA_DIR/zlua.txt" 2> /dev/null
set -U _ZL_DATA "$_ZL_DATA_DIR/zlua.txt" 2> /dev/null
if test ! -e "$_ZL_DATA"
if test ! -e "$_ZL_DATA_DIR"
mkdir -p -m 700 "$_ZL_DATA_DIR" 2> /dev/null
end
end
set -x _ZL_DATA "$_ZL_DATA"
set _zlua_dir (dirname (status --current-filename))
if test -e $_zlua_dir/z.lua
if type -q lua
lua $_zlua_dir/z.lua --init fish enhanced once echo | source
else if type -q lua5.3
lua5.3 $_zlua_dir/z.lua --init fish enhanced once echo | source
else if type -q lua5.2
lua5.2 $_zlua_dir/z.lua --init fish enhanced once echo | source
else if type -q lua5.1
lua5.1 $_zlua_dir/z.lua --init fish enhanced once echo | source
else
echo "init z.lua failed, not find lua in your system"
end
alias zc='z -c' # restrict matches to subdirs of $PWD
alias zz='z -i' # cd with interactive selection
alias zf='z -I' # use fzf to select in multiple matches
alias zb='z -b' # quickly cd to the parent directory
set -U ZLUA_SCRIPT "$ZLUA_SCRIPT" 2> /dev/null
set -U ZLUA_LUAEXE "$ZLUA_LUAEXE" 2> /dev/null
end
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。