<gh_stars>1-10
#!/usr/bin/env python

import colorama
colorama.init()

hide_path= "|…" 
hide_path_length=2



import os,sys
current_path=os.getcwd()
# change $HOME to "~"
home = os.getenv("HOME")
current_path = current_path.replace(home,'~')

dirs = current_path.split("/")
for i in range(len(dirs)):
	if len(dirs[i])>12:
		cut = 12 - hide_path_length
		dirs[i]=dirs[i][:cut]+hide_path
path = "/".join(dirs)
#sys.stdout.write(os.path.basename(path))
#print ("LOL")
#print (os.path.basename(path))
#print("HIHI")

#!/usr/bin/env python

import colorama
colorama.init()

hide_path= "|…" 
hide_path_length=2



import os,sys
current_path=os.getcwd()
# change $HOME to "~"
home = os.getenv("HOME")
current_path = current_path.replace(home,'~')

dirs = current_path.split("/")
for i in range(len(dirs)):
	if len(dirs[i])>12:
		cut = 12 - hide_path_length
		dirs[i]=dirs[i][:cut]+hide_path
path = "/".join(dirs)
#sys.stdout.write(os.path.basename(path))
#print ("LOL")
#print (os.path.basename(path))
#print("HIHI")
#!/usr/bin/env python # change $HOME to "~" #sys.stdout.write(os.path.basename(path)) #print ("LOL") #print (os.path.basename(path)) #print("HIHI")