mirror of
https://github.com/jarun/nnn.git
synced 2024-11-27 21:31:30 +00:00
Remove trailing spaces
This commit is contained in:
parent
a7fd4957dd
commit
9e3bd377b0
|
@ -24,14 +24,14 @@ if [ -n "$sel" ]; then
|
||||||
# by fzf command is absolute
|
# by fzf command is absolute
|
||||||
case $sel in
|
case $sel in
|
||||||
/*) nnn_cd "$sel" ;;
|
/*) nnn_cd "$sel" ;;
|
||||||
*)
|
*)
|
||||||
# Remove "./" prefix if it exists
|
# Remove "./" prefix if it exists
|
||||||
sel="${sel#./}"
|
sel="${sel#./}"
|
||||||
|
|
||||||
if [ "$PWD" = "/" ]; then
|
if [ "$PWD" = "/" ]; then
|
||||||
nnn_cd "/$sel"
|
nnn_cd "/$sel"
|
||||||
else
|
else
|
||||||
nnn_cd "$PWD/$sel"
|
nnn_cd "$PWD/$sel"
|
||||||
fi;;
|
fi;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue