This commit is contained in:
commit
1243987b80
@ -340,9 +340,9 @@ __shorten_path()
|
|||||||
|
|
||||||
local len_percent=$2
|
local len_percent=$2
|
||||||
|
|
||||||
|
local p=$(echo "$1" | sed -e "s|$HOME|~|")
|
||||||
local len="${#p}"
|
local len="${#p}"
|
||||||
|
|
||||||
local p=$(echo "$1" | sed -e "s|$HOME|~|")
|
|
||||||
local max_len=$((${COLUMNS:-80}*$len_percent/100))
|
local max_len=$((${COLUMNS:-80}*$len_percent/100))
|
||||||
local mask_len="${#mask}"
|
local mask_len="${#mask}"
|
||||||
local slashes=0
|
local slashes=0
|
||||||
|
Loading…
Reference in New Issue
Block a user