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 +}