Skip to content

Instantly share code, notes, and snippets.

@coderofsalvation
Last active December 6, 2024 13:37

Revisions

  1. coderofsalvation revised this gist Dec 6, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original 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 -f .env && source .env # setup environment / run scripts e.g.
    test -d .git && git remote -v # react to implicit metadata
    ls # list directories
    }
  2. coderofsalvation revised this gist Dec 6, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original 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
    }
    [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories
    }
  3. coderofsalvation revised this gist Dec 6, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original 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.
    text -f .somefile && ./.somefile # do something automatically
    test -d .git && git remote -v # react to implicit metadata
    }
    [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories
    }
  4. coderofsalvation revised this gist Dec 6, 2024. No changes.
  5. coderofsalvation revised this gist Dec 6, 2024. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions .bashrc
    Original 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.
    which kanban &>/dev/null && { # display kanban.sh board
    test -d ./.kanban && kanban show
    }
    text -f .somefile && ./.somefile # do something automatically
    }
    [[ ! $(pwd) =~ "/mnt" ]] && ls # list directories
    }
  6. coderofsalvation revised this gist Dec 6, 2024. No changes.
  7. coderofsalvation revised this gist Dec 6, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion .bashrc
    Original 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
    test -f .env & source .env # setup environment / run scripts e.g.
    which kanban &>/dev/null && { # display kanban.sh board
    test -d ./.kanban && kanban show
    }
  8. coderofsalvation created this gist Dec 6, 2024.
    11 changes: 11 additions & 0 deletions .bashrc
    Original 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
    }