Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Just wondering if it is possible to make lshell show short current working paths? Cant seem to find any details in the lshell documentation.
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedNot sure if it is possible, there is no such feature, AFAIK, but it is not really BOA issue.
If you will find a way to do this, feel free to re-open the issue - patches are welcome!
Comment #2
7wonders CreditAttribution: 7wonders commentedYeah, I realised this is more of a lshell issue and unfortunately I dont see any way of doing it without changing the shell (or lshell source) which kind of defeats the purpose of lshell! For my own user I have gone ahead and done it though so I get nice pretty short paths and my customised color scheme for bash (foresee any problems with this when it comes to upgrading???).
Comment #3
omega8cc CreditAttribution: omega8cc commentedWell, maybe it is possible by hacking lshell source a bit, I just didn't try that yet. In fact, I have found it a bit annoying that it displays full path by default. Why not leave this for
pwd
command? I will look into this anyway. If you have a working patch, please submit it :)Comment #4
omega8cc CreditAttribution: omega8cc commentedThis has been fixed in head. There is not only short prompt, but also auto-completion and easy switching between last used directories:
Example for main user:
Example for secondary user: