Zsh has neat shortcuts for decomposing file names & paths
I only just learned that the venerable basename and dirname are no longer necessary, let-alone the horrible string splitting required for teasing apart names from file extensions. Zsh has some awesomely convenient expansion modifiers which do it all! e.g. given the path “/Users/me/Documents/Work.zip”: You can also compose these arbitrarily, e.g.: Kudos to Zaiste Programming for … Read more