Skip to content

Instantly share code, notes, and snippets.

View Loongphy's full-sized avatar
🚀
Landing Mars

Loongphy Wei Loongphy

🚀
Landing Mars
View GitHub Profile
@Loongphy
Loongphy / devtools.fish
Last active December 4, 2024 01:14
fish script
# ~/.config/fish/conf.d/devtools.fish
# kill the process of the specified port
function kp
set port $argv[1]
lsof -i:$port | awk "NR==2{print $2}" | xargs kill -9
end
# git commands
alias main="git checkout main"