SHTK_CLI_DIRNAME(3)

πŸ“¦ version 1.7, in nixos 26.05, nixpkgs unstable

πŸ’– SHTK_CLI_DIRNAME(3) πŸ’–

okay so real talk, bestie β€” this is a page from the Library Functions Manual, and it's about a tiny little function called shtk_cli_dirname that is genuinely so much more useful than it sounds. let's get into it 🫢


✨ NAME ✨

shtk_cli_dirname β€” literally just tells you where the directory that your current script lives in is. that's it. that's the whole vibe. πŸŽ€


🌸 LIBRARY 🌸

you get this one by importing cli, like:

shtk_import cli

no cap, that's the whole hookup πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

shtk_cli_dirname

no arguments, no flags, no drama. she just works. ✨


πŸ’œ DESCRIPTION πŸ’œ

okay so the way that shtk_cli_dirname works is: you call it, and it prints out the path to the directory where your current program lives. like, the actual place on disk your script is chilling in. main character energy for sure πŸ‘‘

so if your script needs to find its sibling files β€” configs, data, whatever β€” this is the function that hands you the map πŸ—ΊοΈπŸ’–


🌈 SEE ALSO 🌈

  • shtk(3) β€” the whole shtk situation πŸ’«
  • shtk_cli(3) β€” the cli library this cutie comes from 🌸

⭐ HISTORY ⭐

shtk_cli_dirname first appeared in shtk 1.0. she's been iconic since day one, fr fr πŸ”₯


ngl this one's short and sweet β€” no warnings, no gotchas, no "undefined behaviour" jump scares. just a humble little dirname getter doing her thing πŸ§šπŸ’–

and that's the tea, bestie πŸ“ this page came to you from Debian, dated November 5, 2014 β€” yeah she's vintage but she still ate πŸ’…βœ¨ mwah, ily, go write some slay shell scripts πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from