We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
shorten_path()
1 parent f8f9a5e commit 261cae4Copy full SHA for 261cae4
1 file changed
src/functions/auxiliary.sh
@@ -184,10 +184,10 @@ shorten_path(){
184
if [[ "$local_path" == "$PWD/"* &&
185
"$PWD" != "$HOME" ]]; then
186
# E.g. '/home/zappex/.config/flux.ini' -> 'flux.ini' (if current directory is '/home/zappex/.config')
187
- local_path="${local_path/"$PWD/"/}"
+ local local_path="${local_path/"$PWD/"/}"
188
elif [[ "$local_path" == "$HOME"* ]]; then
189
# E.g. '/home/zappex/.config/flux.ini' -> '~/.config/flux.ini' (if current directory is '/home/zappex')
190
- local_path="${local_path/"$HOME"/'~'}"
+ local local_path="${local_path/"$HOME"/'~'}"
191
fi
192
193
# Value will be printed in message from command substitution
0 commit comments