dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

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

Diffstat:
M.config/sh/functions | 10+++++++---
1 file changed, 7 insertions(+), 3 deletions(-)

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