Remove a trailing pathname component, leaving the head
$ echo =ls(:h) /bin
DZone Snippets > hello > zsh
12123 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
$ echo =ls(:h) /bin