summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig/profile11
1 files changed, 0 insertions, 11 deletions
diff --git a/config/profile b/config/profile
index 8f63f9e..e3843ed 100755
--- a/config/profile
+++ b/config/profile
@@ -109,17 +109,6 @@ HISTSIZE=1000000
# shellcheck disable=SC2034
SAVEHIST=1000000
-# detach from tmux by default
-# Guard at call time, not definition time.
-# functions and sources them in non-interactive tool shells that inherit
-# $TMUX, where a bare `exit` must really exit (not detach the terminal).
-exit() {
- if [[ -n "${TMUX:-}" ]] && [[ $- == *i* ]]; then
- tmux detach
- else
- builtin exit "$@"
- fi
-}
exists() { command -v "$1" >/dev/null 2>&1; } # Check if command exists (is in path).
lspath() { echo "$PATH" | tr ':' '\n'; } # list PATH entries
pathadd() { [[ -d "$1" ]] && PATH="$1"$(echo ":$PATH:" | sed "s|:$1:|:|" | sed 's|:$||'); }