Pinned Loading
-
[cli] kill-port
[cli] kill-port 1function kill-port() {
2ss --numeric --tcp --listening --processes --resolve --no-header --no-queues --oneline \
3| grep "pid=" \
4| sd '^\w+ +(?P<HOST>[^:]+):(?P<PORT>\d+) [^"]+"(?P<NAME>[^"]+)",pid=(?P<PID>\d+).*\n?' '$NAME: $HOST:$PORT [$PID]\n' \
5| fzf --prompt="Select to kill: " \
-
[cli] rgo - rip grep open
[cli] rgo - rip grep open 1function rgo() {
2local input="rg --column --line-number --no-heading --color=always --smart-case --"
3: | fzf --ansi --disabled --query "${*:-}" \
4--bind "start:reload:$input {q}" \
5--bind "change:reload:sleep 0.1; $input {q} || true" \
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.