From a61a52784282dc35d791aaba82e38579eca0b27d Mon Sep 17 00:00:00 2001 From: Vasili Sviridov Date: Mon, 9 Dec 2019 14:16:18 -0800 Subject: [PATCH] fixed paths --- bash.d/10-paths.sh | 4 ++-- bash.d/20-commands.sh | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 bash.d/20-commands.sh diff --git a/bash.d/10-paths.sh b/bash.d/10-paths.sh index 82a3535..0384970 100644 --- a/bash.d/10-paths.sh +++ b/bash.d/10-paths.sh @@ -1,7 +1,7 @@ #!/bin/bash -export PATH="./node_modules/.bin;$PATH" +export PATH="./node_modules/.bin:$PATH" if [ -e "$HOME/.cargo/bin" ]; then - export PATH="$HOME/.cargo/bin;$PATH" + export PATH="$HOME/.cargo/bin:$PATH" fi diff --git a/bash.d/20-commands.sh b/bash.d/20-commands.sh new file mode 100644 index 0000000..443f81c --- /dev/null +++ b/bash.d/20-commands.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +function gr() { + cd "$(git rev-parse --show-toplevel)" || return +}