소스 검색
Remove trailing spaces
master
Arun Prakash Jana
3 년 전
No known key found for this signature in database
GPG 키 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 |