Skip to content

Instantly share code, notes, and snippets.

@jackiect
Last active June 5, 2020 10:35
Show Gist options
  • Save jackiect/e3400332ddd4efa63a694cb246ad61c8 to your computer and use it in GitHub Desktop.
Save jackiect/e3400332ddd4efa63a694cb246ad61c8 to your computer and use it in GitHub Desktop.

Revisions

  1. jackiect revised this gist Apr 6, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion vscode-shell
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    #!/usr/bin/env bash

    SESSION="`pwd |rev |cut -f1 -d/ |rev`#vs-`pwd |md5sum |cut -c1-7`"
    SESSION="vs@`pwd |rev |cut -f1 -d/ |rev| cut -f2 -d.`#`pwd |md5sum |cut -c1-7`"
    tmux attach -d -t $SESSION || tmux new -s $SESSION
  2. jackiect created this gist Mar 9, 2020.
    4 changes: 4 additions & 0 deletions vscode-shell
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    #!/usr/bin/env bash

    SESSION="`pwd |rev |cut -f1 -d/ |rev`#vs-`pwd |md5sum |cut -c1-7`"
    tmux attach -d -t $SESSION || tmux new -s $SESSION