Files
dotfiles/bin/safe-reattach-to-user-namespace

9 lines
205 B
Bash
Executable File

#! /usr/bin/env bash
# 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 $@
else
exec "$@"
fi