dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 9025325486bb676149c2cfcca686705f648f4c65
parent 4d569b0d1b77a0d37b0aa298d23a2e86962b7197
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Fri, 29 Nov 2024 01:56:49 -0500

shell/functions: hard mode for tmux

Diffstat:
M.config/shell/functions.sh | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/.config/shell/functions.sh b/.config/shell/functions.sh @@ -66,6 +66,20 @@ git() { return 1 } +tmux() { + if [ $# = 0 ]; then + echo "Don't use tmux without arguments" + return 1 + fi + + if [ "$1" = "new-session" ] || [ "$1" = "new" ] && [ "$2" != "-c" ]; then + echo "Specify the working directory." + return 1 + fi + + command tmux "$@" +} + status_dotfiles() { set -- \ --modified \