dotfiles

Cross platform dotfiles for linux, mac and windows

commit 027258b36c8b09c64ce1a034790c5c0a635b1b45
parent db6cac129e0dbc6f6c22b5798461f9ab5c4c4005
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Sun, 25 Jun 2023 04:26:24 +0530

Fix typo in .config/sh/functions
1 file changed, 7 insertions(+), 3 deletions(-)
M
.config/sh/functions
|
10
+++++++---
diff --git a/.config/sh/functions b/.config/sh/functions
@@ -44,10 +44,12 @@ quickopen() {
 	#	name="-name $@"
 	#fi
 	# 2>/dev/null
-	if if [ -d .git ]; then
+	if [ -d .git ]; then
 		optional_files="$(git ls-files) |"
 		somethin="$(git ls-files | ${FUZZER})"
-	else maxdepth=${1:-3} somethin="$(find .  -maxdepth $maxdepth | ${FUZZER})" fi
+	else
+		maxdepth=${1:-3} somethin="$(find .  -maxdepth $maxdepth | ${FUZZER})"
+	fi
 	if [ -z "$somethin" ]; then
 		return;
 	elif [ -f "$somethin" ]; then

@@ -60,7 +62,9 @@ quickopen() {
 	fi
 }
 
-cd_and_ls() { cd $* && ls }
+cd_and_ls() {
+	cd $* && ls
+}
 
 download() {
 	# TODO use wget if curl not available