diff --git a/dist/bin/tsm b/dist/bin/tsm index cbbbcf0..d874633 100755 --- a/dist/bin/tsm +++ b/dist/bin/tsm @@ -77,7 +77,7 @@ __tsm_commands=( rename "Rename a saved session" copy "Copy a saved session" restore "Restore a saved session" - resume,open "Restore and attach a saved session" + resume "Restore and attach a saved session" quit "Quit tmux" version "Show version" help "Show usage information" @@ -595,15 +595,6 @@ Help-Message function __tsm::commands::help::resume() { cat < -Aliased as: open -Help-Message - return 64 -} - -function __tsm::commands::help::open() { - cat < -Alias of: resume Help-Message return 64 } @@ -668,6 +659,10 @@ function __tsm::commands::list() { # Restore a session and attach to one # Alias of: __tsm::commands::resume function __tsm::commands::open() { + __tsm::utils::log warn \ + "The $(__tsm::utils::colorize warn "open") command" \ + "is $(__tsm::utils::colorize bold,underline "DEPRECATED")," \ + "use the $(__tsm::utils::colorize info "reusme") command instead." __tsm::commands::resume "$@" } diff --git a/src/commands/help.zsh b/src/commands/help.zsh index ed6c36f..23229c9 100644 --- a/src/commands/help.zsh +++ b/src/commands/help.zsh @@ -73,15 +73,6 @@ Help-Message function __tsm::commands::help::resume() { cat < -Aliased as: open -Help-Message - return 64 -} - -function __tsm::commands::help::open() { - cat < -Alias of: resume Help-Message return 64 } diff --git a/src/commands/open.zsh b/src/commands/open.zsh index 4a36346..22922ac 100644 --- a/src/commands/open.zsh +++ b/src/commands/open.zsh @@ -1,5 +1,9 @@ # Restore a session and attach to one # Alias of: __tsm::commands::resume function __tsm::commands::open() { + __tsm::utils::log warn \ + "The $(__tsm::utils::colorize warn "open") command" \ + "is $(__tsm::utils::colorize bold,underline "DEPRECATED")," \ + "use the $(__tsm::utils::colorize info "reusme") command instead." __tsm::commands::resume "$@" } diff --git a/src/core/constants.zsh b/src/core/constants.zsh index 70ac878..05bfb48 100644 --- a/src/core/constants.zsh +++ b/src/core/constants.zsh @@ -28,7 +28,7 @@ __tsm_commands=( rename "Rename a saved session" copy "Copy a saved session" restore "Restore a saved session" - resume,open "Restore and attach a saved session" + resume "Restore and attach a saved session" quit "Quit tmux" version "Show version" help "Show usage information"