added openclaw-vm tunnel

Signed-off-by: Rack Lin <racklin@gmail.com>
This commit is contained in:
2026-03-13 22:45:35 +08:00
parent 86b71b9554
commit 6238742f20
6 changed files with 78 additions and 64 deletions

View File

@@ -3,4 +3,14 @@ if type -q eza
alias lsa "ls -a" alias lsa "ls -a"
alias ll "ls -l" alias ll "ls -l"
alias lla "ll -a" alias lla "ll -a"
alias llg "ll --git"
end end
if type -q nvim
alias vi nvim
alias vim nvim
end
# openclaw
alias openclaw-cliproxyapi-tunnel 'ssh -NL 8317:127.0.0.1:8317 node@openclaw-vm'
alias openclaw-tunnel 'ssh -NL 18789:127.0.0.1:18789 node@openclaw-vm'

View File

@@ -20,55 +20,54 @@ if status is-interactive
case '*' case '*'
end end
end # include devenv
source (dirname (status --current-filename))/config-dev.fish
# include devenv # set PATH and load os-specify config
source (dirname (status --current-filename))/config-dev.fish switch (uname)
case Darwin
# set PATH and load os-specify config if test -x /opt/homebrew/bin/brew
switch (uname) eval "$(/opt/homebrew/bin/brew shellenv)"
case Darwin set -gx PATH ~/bin $PATH
if test -x /opt/homebrew/bin/brew source (dirname (status --current-filename))/config-osx.fish
eval "$(/opt/homebrew/bin/brew shellenv)" end
set -gx PATH ~/bin $PATH case Linux
source (dirname (status --current-filename))/config-osx.fish source (dirname (status --current-filename))/config-linux.fish
end case '*'
case Linux source (dirname (status --current-filename))/config-windows.fish
source (dirname (status --current-filename))/config-linux.fish
case '*'
source (dirname (status --current-filename))/config-windows.fish
end
# using less instead of more
export LESS='-R'
alias more='less'
# set default editor to nvim
set -gx EDITOR nvim
fzf_configure_bindings
# ghq functions
if type -q ghq
alias ghqcd="cd \$(ghq list --full-path | fzf)"
end
if type -q thefuck
thefuck --alias | source
end
# init zoxide
if type -q zoxide
zoxide init fish | source
end
# init yazi
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end end
rm -f -- "$tmp"
# using less instead of more
export LESS='-R'
alias more='less'
# set default editor to nvim
set -gx EDITOR nvim
fzf_configure_bindings
# ghq functions
if type -q ghq
alias ghqcd="cd \$(ghq list --full-path | fzf)"
end
if type -q thefuck
thefuck --alias | source
end
# init zoxide
if type -q zoxide
zoxide init fish | source
end
# init yazi
function y
set tmp (mktemp -t "yazi-cwd.XXXXXX")
yazi $argv --cwd-file="$tmp"
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
builtin cd -- "$cwd"
end
rm -f -- "$tmp"
end
end end

View File

@@ -1,5 +1,5 @@
{ {
"LazyVim": { "branch": "main", "commit": "d1529f650fdd89cb620258bdeca5ed7b558420c7" }, "LazyVim": { "branch": "main", "commit": "28db03f958d58dfff3c647ce28fdc1cb88ac158d" },
"SchemaStore.nvim": { "branch": "main", "commit": "b850ab25279ba04ada90e8b696ef5d0624af103d" }, "SchemaStore.nvim": { "branch": "main", "commit": "b850ab25279ba04ada90e8b696ef5d0624af103d" },
"blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" }, "blink.cmp": { "branch": "main", "commit": "4b18c32adef2898f95cdef6192cbd5796c1a332d" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },

View File

@@ -7,8 +7,9 @@
"lazyvim.plugins.extras.lang.toml", "lazyvim.plugins.extras.lang.toml",
"lazyvim.plugins.extras.lang.yaml" "lazyvim.plugins.extras.lang.yaml"
], ],
"install_version": 7,
"news": { "news": {
"NEWS.md": "10960" "NEWS.md": "11866"
}, },
"version": 7 "version": 8
} }

View File

@@ -2,9 +2,9 @@ set -g default-terminal "xterm-256color"
#set -ga terminal-overrides ",*256col*:Tc" #set -ga terminal-overrides ",*256col*:Tc"
set -ga terminal-overrides ",xterm-256color:Tc" set -ga terminal-overrides ",xterm-256color:Tc"
# action key # action key
unbind C-b #unbind C-b
set-option -g prefix C-t #set-option -g prefix C-t
set-option -g repeat-time 0 #set-option -g repeat-time 0
#### Key bindings #### Key bindings

View File

@@ -7,3 +7,7 @@
[ -x /usr/local/bin/docker ] && alias php8="docker run --rm --interactive --tty --volume \$PWD:/app composer:latest php" [ -x /usr/local/bin/docker ] && alias php8="docker run --rm --interactive --tty --volume \$PWD:/app composer:latest php"
[ -x /usr/local/bin/docker ] && alias php7="docker run --rm --interactive --tty --volume \$PWD:/app --workdir /app php:7.4-cli php" [ -x /usr/local/bin/docker ] && alias php7="docker run --rm --interactive --tty --volume \$PWD:/app --workdir /app php:7.4-cli php"
[ -x /usr/local/bin/docker ] && alias laravel="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest /tmp/vendor/bin/laravel" [ -x /usr/local/bin/docker ] && alias laravel="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest /tmp/vendor/bin/laravel"
# openclaw
alias openclaw-cliproxyapi-tunnel='ssh -NL 8317:127.0.0.1:8317 node@openclaw-vm'
alias openclaw-tunnel='ssh -NL 18789:127.0.0.1:18789 node@openclaw-vm'