瀏覽代碼
Remove trailing spaces
master
Arun Prakash Jana
4 年之前
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: A75979F35C080412
共有
1 個文件被更改,包括
3 次插入 和
3 次删除
-
plugins/fzcd
|
|
@@ -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 |