goofy ahh alias thingy
i don't know why you want to use this, but here you go
(yes this is tpin help
output):
Commands:
new Create new/replace existing alias [aliases: n]
delete Delete alias [aliases: d]
list List all aliases
print Print alias to stdout [aliases: p]
run Run alias [aliases: r]
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
i want to put it somewhere so it's easy to copy:
$result = & "tpin.exe" "p" $args[0] | Out-String
if ($LastExitCode -eq 0) {
Set-Location -Path $result.Trim()
}
#!/bin/bash
# Check if the number of arguments is correct
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <argument>"
exit 1
fi
# Get the directory using tpin
directory=$(tpin p "$1")
# Check if tpin returns 0
if [ $? -eq 0 ]; then
# Change to the specified directory
cd "$directory"
fi
# generously provided by chatgpt
also it requires nightly so that's fun