Post 2829219 by rixx@chaos.social
 (DIR) More posts by rixx@chaos.social
 (DIR) Post #2827990 by rixx@chaos.social
       2019-01-10T09:44:22Z
       
       0 likes, 0 repeats
       
       Currently going through every docs directory in a range of projects, and using zsh path substitution was never so helpful!$ pwd/home/rixx/Projects/foo/docs$ cd foo bar$ pwd/home/rixx/Projects/bar/docs
       
 (DIR) Post #2828176 by phessler@bsd.network
       2019-01-10T09:54:16Z
       
       0 likes, 0 repeats
       
       @rixx it's in openbsd's pdksh as well! $ pwd/home/phessler/media/Music/Garbage/Unknown Album$ cd Garbage Queen$ pwd/home/phessler/media/Music/Queen/Unknown Album
       
 (DIR) Post #2828788 by unixtippse@chaos.social
       2019-01-10T10:24:26Z
       
       0 likes, 0 repeats
       
       @phessler @rixx It's been in AT&T ksh for as long as I can remember. A mystery why bash refuses to adopt this.
       
 (DIR) Post #2828789 by rixx@chaos.social
       2019-01-10T10:25:40Z
       
       0 likes, 0 repeats
       
       @unixtippse @phessler Yeah, I wasn't sure which shells support it, so I was playing it safe by being specific. It's a feature I only recently (last year-ish) discovered, so I'm sharing it in the hopes of teaching others. Second-most-useful shell thing I learned last year, next to Alt-.
       
 (DIR) Post #2828919 by phessler@bsd.network
       2019-01-10T10:31:27Z
       
       0 likes, 0 repeats
       
       @rixx @unixtippse it is indeed very neat, but I tend to use it rarely because I normally don't use similar directory structures.
       
 (DIR) Post #2829090 by phessler@bsd.network
       2019-01-10T10:32:10Z
       
       0 likes, 0 repeats
       
       @rixx @unixtippse my WM takes Alt-. and uses it as a menu for ssh connections, what does your Alt-. do?
       
 (DIR) Post #2829091 by rixx@chaos.social
       2019-01-10T10:42:25Z
       
       0 likes, 0 repeats
       
       @phessler @unixtippse Alt-. repeats the last argument of the last command (and then cycles to the last argument of the second-to-last command etc.Super-useful for creating a directory, then changing its access rights, editing a file, then git-adding it etc. Once I got used to it, I never stopped using it.
       
 (DIR) Post #2829218 by ckeen@vernunftzentrum.de
       2019-01-10T10:43:44.853301Z
       
       0 likes, 0 repeats
       
       @rixx @unixtippse @phessler WOW! After all these years...!
       
 (DIR) Post #2829219 by rixx@chaos.social
       2019-01-10T10:47:00Z
       
       0 likes, 0 repeats
       
       @ckeen @phessler @unixtippse Yet another thing I should probably pack into a blog post. I'm just always hesitant about stuff like this, because there are already so many posts detailing stuff like this.
       
 (DIR) Post #2829251 by phessler@bsd.network
       2019-01-10T10:48:31Z
       
       0 likes, 0 repeats
       
       @rixx @ckeen @unixtippse unix isn't nearly as bad as networking, but we're still mostly an oral tradition industry.more blog posts, more documentation.
       
 (DIR) Post #2829255 by MacLemon@chaos.social
       2019-01-10T10:48:37Z
       
       0 likes, 0 repeats
       
       @rixx @phessler @unixtippse alt-. is a WM specific terminal emulator function, not a functionality of a shell as far as I understand that.!$ on the other hand should work in most shells.Example:mkdir foochmod 700 !$On macOS typing alt-. inserts a … character (ellipsis) as a Mac user would expect because the alt-modifier is used for alternative characters everywhere.We use ctrl for shell bindings and command (⌘) to interact with the application/window manager.