10 Ağustos 2019

Terminal konumu kısaltma

Bash 4 introduced a new environment variable called PROMPT_DIRTRIM that allows the shortening of paths displayed in its prompts (via w in PS1. I added
PROMPT_DIRTRIM=3
to my ~/.bashrc and whereas Bash used to display this prompt:
[user@host /media/D/Projects/nitdroid/ul/out/target/product/generic/system/framework]$
It now displays
[user@host .../generic/system/framework]$
which is a huge improvement especially when working with deep directory structures.

Hiç yorum yok:

Yorum Gönder

Mutlak Gizlilik ve Anonimlik Arayanlar İçin En İyi Kaynaklar: Forumlar, Bloglar ve Topluluklar Rehberi

  Mutlak Gizlilik ve Anonimlik Arayanlar İçin En İyi Kaynaklar: Forumlar, Bloglar ve Topluluklar Rehberi Gizliliğe ve anonimliğe odaklanan ...