Skip to content

Commit

Permalink
Merge pull request #1110 from rsteube/tmux-killsession
Browse files Browse the repository at this point in the history
tmux: kill-session
  • Loading branch information
rsteube authored May 9, 2022
2 parents 6f97bfc + 92c128d commit d389cbe
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,20 @@ import (

var killSessionCmd = &cobra.Command{
Use: "kill-session",
Short: "",
Short: "destroy a given session",
Run: func(cmd *cobra.Command, args []string) {},
}

func init() {
carapace.Gen(killSessionCmd).Standalone()

killSessionCmd.Flags().StringS("t", "t", "", "target-session")
killSessionCmd.Flags().BoolS("C", "C", false, "clear alerts (bell, activity, silence) in all windows linked to the session")
killSessionCmd.Flags().BoolS("a", "a", false, "kill all session except the one specified by -t")
killSessionCmd.Flags().StringS("t", "t", "", "specify target session")

rootCmd.AddCommand(killSessionCmd)

carapace.Gen(killSessionCmd).FlagCompletion(carapace.ActionMap{
"t": tmux.ActionWindows(),
"t": tmux.ActionSessions(),
})
}

0 comments on commit d389cbe

Please sign in to comment.