fix: no more force remove symlink on shell exit
1 file changed, +4 -4
+4-4custom-plugins/symlink_rust_executables.zsh
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | export SYMLINK_RUST_VERSION="0.0.1" |
| 2 | 2 | |
| 3 | -export SYMLINK_RUST_ENV="${SYMLINK_RUST_ENV:-debug}" # debug/release: defaults to debug | |
| 4 | -export SYMLINK_DEBUGGING_MODE="${SYMLINK_DEBUGGING_MODE:-0}" # 0 for off and 1 for on | |
| 3 | +export SYMLINK_RUST_ENV="${SYMLINK_RUST_ENV:-debug}" # debug/release: defaults to debug | |
| 4 | +export SYMLINK_DEBUGGING_MODE="${SYMLINK_DEBUGGING_MODE:-0}" # 0 for off and 1 for on | |
| 5 | 5 | |
| 6 | 6 | # Make sure local bin is available |
| 7 | 7 | [ ! -d ~/.local/bin ] && mkdir -p ~/.local/bin |
| @@ -10,7 +10,7 @@ echo "$PATH" | grep -q "$HOME/.local/bin" || export PATH="$PATH:$HOME/.local/bin | ||
| 10 | 10 | # Keep track of programs added through this plugin |
| 11 | 11 | SYMLINKED_PROGRAMS=() |
| 12 | 12 | |
| 13 | -# Create a symlink from debug/release to target. | |
| 13 | +# Create a symlink from debug/release to target. | |
| 14 | 14 | # Can switch from debug to release at any time with `export SYMLINK_RUST_ENV=debug/release`. |
| 15 | 15 | # Your next command will switch out the symlink. |
| 16 | 16 | function _symlink_rust_executables() { |
| @@ -29,7 +29,7 @@ function _symlink_rust_executables() { | ||
| 29 | 29 | # Remove all the programs created |
| 30 | 30 | function _cleanup_symlink_rust_executables() { |
| 31 | 31 | for program in "${SYMLINKED_PROGRAMS[@]}"; do |
| 32 | - rm -f "$program" | |
| 32 | + rm "$program" | |
| 33 | 33 | done |
| 34 | 34 | } |
| 35 | 35 |