@@ -9,7 +9,7 @@ alias {{.prefix}}tc-='gardenctl target unset control-plane'
9
9
alias {{.prefix}}k='eval "$(gardenctl kubectl-env {{.shell}})"'
10
10
alias {{.prefix}}p='eval "$(gardenctl provider-env {{.shell}})"'
11
11
alias {{.prefix}}cv='gardenctl config view -o yaml'
12
- alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort | {{.shell}}'
12
+ alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort --height 40% --layout reverse --info inline --border --preview 'echo {}' --preview-window up,1,border-horizontal --color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,hl+:#ffaf5f,preview-bg:#223345,border:#778899' | {{.shell}}'
13
13
{{if not .noCompletion -}}
14
14
source <(gardenctl completion {{.shell}})
15
15
complete -o default -F __start_gardenctl {{.prefix}}
@@ -30,7 +30,7 @@ alias {{.prefix}}tc-='gardenctl target unset control-plane'
30
30
alias {{.prefix}}k='eval "$(gardenctl kubectl-env {{.shell}})"'
31
31
alias {{.prefix}}p='eval "$(gardenctl provider-env {{.shell}})"'
32
32
alias {{.prefix}}cv='gardenctl config view -o yaml'
33
- alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort | {{.shell}}'
33
+ alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort --height 40% --layout reverse --info inline --border --preview 'echo {}' --preview-window up,1,border-horizontal --color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,hl+:#ffaf5f,preview-bg:#223345,border:#778899' | {{.shell}}'
34
34
{{if not .noCompletion -}}
35
35
if (( $+commands[gardenctl] )); then
36
36
if [ -d "$ZSH_CACHE_DIR/completions" ] && (($fpath[(Ie)$ZSH_CACHE_DIR/completions])); then
@@ -63,7 +63,7 @@ alias {{.prefix}}tc-='gardenctl target unset control-plane'
63
63
alias {{.prefix}}k='eval (gardenctl kubectl-env {{.shell}})'
64
64
alias {{.prefix}}p='eval (gardenctl provider-env {{.shell}})'
65
65
alias {{.prefix}}cv='gardenctl config view -o yaml'
66
- alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort | {{.shell}}'
66
+ alias {{.prefix}}h='gardenctl target history | fzf --tac --no-sort --height 40% --layout reverse --info inline --border --preview 'echo {}' --preview-window up,1,border-horizontal --color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,hl+:#ffaf5f,preview-bg:#223345,border:#778899' | {{.shell}}'
67
67
{{if not .noCompletion -}}
68
68
gardenctl completion {{.shell}} | source
69
69
complete -c {{.prefix}} -w gardenctl
@@ -102,6 +102,10 @@ function Gardenctl-Config-View {
102
102
gardenctl config view -o yaml
103
103
}
104
104
Set-Alias -Name {{.prefix}}cv -Value Gardenctl-Config-View -Option AllScope -Force
105
+ function Gardenctl-Target-History {
106
+ Invoke-Expression -Command "gardenctl target history | fzf --tac --no-sort --height 40% --layout reverse --info inline --border --preview 'echo {}' --preview-window up,1,border-horizontal --color 'fg:#bbccdd,fg+:#ddeeff,bg:#334455,hl+:#ffaf5f,preview-bg:#223345,border:#778899'" | Invoke-Expression
107
+ }
108
+ Set-Alias -Name gh -Value Gardenctl-Target-History -Option AllScope -Force
105
109
{{if not .noCompletion -}}
106
110
function Gardenctl-Completion-Powershell {
107
111
$s = (gardenctl completion {{.shell}})
0 commit comments