diff --git a/dot_config/television/cable/aws-elasticache.toml b/dot_config/television/cable/aws-elasticache.toml --- a/dot_config/television/cable/aws-elasticache.toml +++ b/dot_config/television/cable/aws-elasticache.toml @@ -12,3 +12,11 @@ [ui.preview_panel] size = 60 +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the cluster details (preview content) to the clipboard" +command = "aws elasticache describe-cache-clusters --cache-cluster-id '{split:\t:0}' --output json | pbcopy" +mode = "fork" + diff --git a/dot_config/television/cable/aws-instances.toml b/dot_config/television/cable/aws-instances.toml --- a/dot_config/television/cable/aws-instances.toml +++ b/dot_config/television/cable/aws-instances.toml @@ -13,6 +13,14 @@ layout = "portrait" preview_panel = { size = 60 } +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the instance details (preview content) to the clipboard" +command = "aws ec2 describe-instances --output json --instance-ids {split:\t:0} --query 'Reservations[*].Instances[0]' | pbcopy" +mode = "fork" + [actions.start] description = "Start the selected EC2 instance" command = "aws ec2 start-instances --instance-ids {split:\t:0}" diff --git a/dot_config/television/cable/aws-rds.toml b/dot_config/television/cable/aws-rds.toml --- a/dot_config/television/cable/aws-rds.toml +++ b/dot_config/television/cable/aws-rds.toml @@ -12,3 +12,11 @@ [ui.preview_panel] size = 60 +[keybindings] +enter = "actions:copy" + +[actions.copy] +description = "Copy the instance details (preview content) to the clipboard" +command = "aws rds describe-db-instances --db-instance-identifier '{split:\t:0}' --output json | pbcopy" +mode = "fork" +