mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +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
|
||||
case $sel in
|
||||
/*) nnn_cd "$sel" ;;
|
||||
*)
|
||||
*)
|
||||
# Remove "./" prefix if it exists
|
||||
sel="${sel#./}"
|
||||
|
||||
|
||||
if [ "$PWD" = "/" ]; then
|
||||
nnn_cd "/$sel"
|
||||
else
|
||||
nnn_cd "$PWD/$sel"
|
||||
fi;;
|
||||
esac
|
||||
esac
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue