Skip to content

Instantly share code, notes, and snippets.

View pwwang's full-sized avatar
🏠
Github addictive user

Panwen Wang pwwang

🏠
Github addictive user
View GitHub Profile
@pwwang
pwwang / cpwd.fish
Created October 1, 2025 19:41
A command to get the cloud path with a path mounted by gcsfuse
function cpwd --description 'Print the cloud path of a mounted path'
if test (count $argv) -gt 1
echo "Usage: cloudpath [mounted_path]"
return 1
end
if test (count $argv) -eq 0
set mounted_path (pwd)
else
set mounted_path $argv[1]