mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
13 lines
356 B
Bash
Executable File
13 lines
356 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
# Ensure that tmux windows are by default named after the shell, rather than
|
|
# full path to the shell binary.
|
|
shell=$(basename "$SHELL")
|
|
|
|
# If reattach-to-user-namespace is not available, just run the command.
|
|
if [ -n "$(command -v reattach-to-user-namespace)" ]; then
|
|
reattach-to-user-namespace -l "$shell"
|
|
else
|
|
exec "$shell"
|
|
fi
|