Skip to content

Commit

Permalink
tmux: kill-session
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed May 9, 2022
1 parent 6488d3d commit 92c128d
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 92c128d

Please sign in to comment.