Add gh and glab cli and fix xdg-open

main
Julius Riegel 8 months ago
parent 97f50a6209
commit 70369fed4c

@ -60,6 +60,11 @@ roots = []
formatter = { command = "roc", args = ['format', '--stdin', '--stdout'] } formatter = { command = "roc", args = ['format', '--stdin', '--stdout'] }
grammar = "roc" grammar = "roc"
[[language]]
name = "bash"
auto-format = true
formatter = { command = "shfmt", args = ["-s", "-sr", "-"]}
[language.auto-pairs] [language.auto-pairs]
'(' = ')' '(' = ')'
'{' = '}' '{' = '}'

@ -12,6 +12,10 @@ def --env main [] {
def `main open-file` [path: string] { def `main open-file` [path: string] {
if ($path | str starts-with "http") {
/usr/bin/xdg-open $path
return
}
match ($path | path parse | get extension | str downcase) { match ($path | path parse | get extension | str downcase) {
"png" => { open-image $path } "png" => { open-image $path }
"jpg" => { open-image $path } "jpg" => { open-image $path }

@ -40,7 +40,11 @@ config.modules = {
'translate-shell', 'translate-shell',
'tealdeer', 'tealdeer',
'jq', 'jq',
'nodePackages.bash-language-server' 'nodePackages.bash-language-server',
'gh',
'glab',
'shellcheck',
'shfmt',
}, },
gui = mod { gui = mod {
'kdePackages.breeze-icons', 'kdePackages.breeze-icons',

Loading…
Cancel
Save