1 Star 0 Fork 4

搬砖现场/z.lua

forked from Gitee 极速下载/z.lua 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
init.fish 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
skywind3000 提交于 2019-02-09 00:05 . update omf entry
#! /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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhaowx_admin/z.lua.git
git@gitee.com:zhaowx_admin/z.lua.git
zhaowx_admin
z.lua
z.lua
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385