From b91009404f0ad4b5450259a70cfa480cc1d8e6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kim=20Silkeb=C3=A6kken?= Date: Wed, 16 Jan 2013 09:04:26 +0100 Subject: [PATCH] Use midline ellipsis for dir shortening --- powerline/ext/terminal/segments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerline/ext/terminal/segments.py b/powerline/ext/terminal/segments.py index 3b84e15d..81ffedc5 100644 --- a/powerline/ext/terminal/segments.py +++ b/powerline/ext/terminal/segments.py @@ -38,7 +38,7 @@ def cwd(dir_shorten_len=None, dir_limit_depth=None): cwd_split_len = len(cwd_split) if cwd_split_len > dir_limit_depth + 1: del(cwd_split[0:-dir_limit_depth]) - cwd_split.insert(0, u'…') + cwd_split.insert(0, u'⋯') cwd = [i[0:dir_shorten_len] if dir_shorten_len and i else i for i in cwd_split[:-1]] + [cwd_split[-1]] cwd = os.path.join(*cwd) return cwd