Skip to content

Commit 259dded

Browse files
committed
feat: added a cd command to suto run nvmrc and pipenv shell
1 parent e3bc1a2 commit 259dded

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

avaiable/01_path.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export PATH=$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.screenlayout
1+
export PATH=$PATH:$HOME/bin:$HOME/.local/bin:$HOME/.screenlayout:$HOME/opt/Postman

avaiable/10_i3.bash

Lines changed: 0 additions & 4 deletions
This file was deleted.

avaiable/16_super_cd.bash

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
function cd {
2+
builtin cd "$@"
3+
pwd > ~/.last_dir
4+
if [ -e $(pwd)/.nvmrc ]; then
5+
nvm use
6+
fi
7+
8+
if [ -e $(pwd)/Pipfile ]; then
9+
pipenv shell
10+
fi
11+
}

0 commit comments

Comments
 (0)