Remove trailing spaces

This commit is contained in:
Arun Prakash Jana 2020-11-22 20:54:49 +05:30
parent a7fd4957dd
commit 9e3bd377b0
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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