Skip to content

kkard2/tpin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tpin

goofy ahh alias thingy

usage

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

the script

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()
}

the script but i'm on linux now

#!/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

also it requires nightly so that's fun

About

goofy ahh alias thingy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages