Last active
December 6, 2024 13:37
Revisions
-
coderofsalvation revised this gist
Dec 6, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cd(){ test -f .env.leave && source .env.leave # cleanup environment builtin cd ${1:+"$@"} && { test -f .env && source .env # setup environment / run scripts e.g. test -d .git && git remote -v # react to implicit metadata ls # list directories } -
coderofsalvation revised this gist
Dec 6, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -4,6 +4,6 @@ cd(){ builtin cd ${1:+"$@"} && { test -f .env & source .env # setup environment / run scripts e.g. test -d .git && git remote -v # react to implicit metadata ls # list directories } } -
coderofsalvation revised this gist
Dec 6, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cd(){ test -f .env.leave && source .env.leave # cleanup environment builtin cd ${1:+"$@"} && { test -f .env & source .env # setup environment / run scripts e.g. test -d .git && git remote -v # react to implicit metadata } [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories } -
coderofsalvation revised this gist
Dec 6, 2024 . No changes.There are no files selected for viewing
-
coderofsalvation revised this gist
Dec 6, 2024 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,9 +3,7 @@ cd(){ test -f .env.leave && source .env.leave # cleanup environment builtin cd ${1:+"$@"} && { test -f .env & source .env # setup environment / run scripts e.g. text -f .somefile && ./.somefile # do something automatically } [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories } -
coderofsalvation revised this gist
Dec 6, 2024 . No changes.There are no files selected for viewing
-
coderofsalvation revised this gist
Dec 6, 2024 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ cd(){ test -f .env.leave && source .env.leave # cleanup environment builtin cd ${1:+"$@"} && { test -f .env & source .env # setup environment / run scripts e.g. which kanban &>/dev/null && { # display kanban.sh board test -d ./.kanban && kanban show } -
coderofsalvation created this gist
Dec 6, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # minimalist version of https://github.com/hyperupcall/autoenv cd(){ test -f .env.leave && source .env.leave # cleanup environment builtin cd ${1:+"$@"} && { test -f .env & source .env # setup environment which kanban &>/dev/null && { # display kanban.sh board test -d ./.kanban && kanban show } } [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories }