From 764ec8e9eaac5339c44332faef5214e920b20e18 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 9 Jan 2023 10:52:09 +0100 Subject: [PATCH 1/2] Add command: project-ssh --- path/project-ssh | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 path/project-ssh diff --git a/path/project-ssh b/path/project-ssh new file mode 100755 index 0000000..420db42 --- /dev/null +++ b/path/project-ssh @@ -0,0 +1,2 @@ +#!/bin/bash +ssh $(project-sshn) "$@" \ No newline at end of file From c53097f07f168192e1fc965308c15a3d6c778e22 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 9 Jan 2023 11:05:00 +0100 Subject: [PATCH 2/2] Make it a source script instead of its own shell --- shell | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/shell b/shell index 310ffa2..c3909b1 100755 --- a/shell +++ b/shell @@ -5,11 +5,4 @@ cd "$SCRIPT_DIR" ARGS="$@" export PATH="$SCRIPT_DIR/path:$PATH" export PS1="\$? $PS1" -source ./env - -if [ "$ARGS" == "" ]; then - echo "-- project shell --" - exec bash -else - exec bash -c "$ARGS" -fi \ No newline at end of file +source ./env \ No newline at end of file