SHTK_CLI_DIRNAME(3)
π 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
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2014 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms