mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 08:06:50 +01:00
Chore: update formatter
This commit is contained in:
parent
3eb72c17d7
commit
880c97dff8
4 changed files with 37 additions and 20 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1,3 +1,4 @@
|
|||
result
|
||||
result/
|
||||
secrets/yubikey-identity.txt
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
mkExtensionIgnore = exts: "*.{${lib.concatStringsSep "," exts}}";
|
||||
in {
|
||||
imports = [inputs.treefmt-nix.flakeModule];
|
||||
|
||||
perSystem = {config, ...}: {
|
||||
|
|
@ -10,8 +16,18 @@
|
|||
statix.enable = true;
|
||||
just.enable = true;
|
||||
prettier.enable = true;
|
||||
fish_indent.enable = true;
|
||||
};
|
||||
settings.global.excludes = ["*.{gitignore,svg}"];
|
||||
settings.global.excludes = [
|
||||
"result"
|
||||
"*/node_modules/*"
|
||||
(mkExtensionIgnore [
|
||||
"gitignore"
|
||||
"svg"
|
||||
"age"
|
||||
"pub"
|
||||
])
|
||||
];
|
||||
};
|
||||
formatter = config.treefmt.build.wrapper;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
set __kube_verbs get describe delete edit
|
||||
set __kube_verbs_short g d rm e
|
||||
set __kube_resource pods deployments services ingresses configmaps daemonsets statefulsets namespace namespace
|
||||
set __kube_resource_short p d s i c ds ss n ns
|
||||
set __kube_verbs get describe delete edit
|
||||
set __kube_verbs_short g d rm e
|
||||
set __kube_resource pods deployments services ingresses configmaps daemonsets statefulsets namespace namespace
|
||||
set __kube_resource_short p d s i c ds ss n ns
|
||||
|
||||
function __echo_kubeexec;
|
||||
function __echo_kubeexec
|
||||
set _flag_namespace (kubectl config view --minify --output 'jsonpath={..namespace}')
|
||||
if test -z "$_flag_namespace"
|
||||
set _flag_namespace default
|
||||
|
|
@ -18,7 +18,7 @@ function __echo_kubeexec;
|
|||
echo "kubectl exec --namespace $_flag_namespace -it $POD --"
|
||||
end
|
||||
|
||||
function __echo_kubemanage;
|
||||
function __echo_kubemanage
|
||||
set _flag_namespace (kubectl config view --minify --output 'jsonpath={..namespace}')
|
||||
if test -z "$_flag_namespace"
|
||||
set _flag_namespace default
|
||||
|
|
@ -60,4 +60,4 @@ if type -q kubectl
|
|||
|
||||
abbr kexec --function __echo_kubeexec
|
||||
abbr kmanage --function __echo_kubemanage
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -25,16 +25,16 @@ set -U fish_pager_color_progress brwhite --background=cyan
|
|||
set -U fish_pager_color_completion normal
|
||||
set -U fish_pager_color_description yellow --italics
|
||||
set -U fish_pager_color_selected_background --reverse
|
||||
set -U fish_pager_color_selected_description
|
||||
set -U fish_pager_color_selected_completion
|
||||
set -U fish_pager_color_secondary_completion
|
||||
set -U fish_pager_color_secondary_background
|
||||
set -U fish_color_keyword
|
||||
set -U fish_pager_color_selected_prefix
|
||||
set -U fish_pager_color_background
|
||||
set -U fish_pager_color_secondary_prefix
|
||||
set -U fish_pager_color_secondary_description
|
||||
set -U fish_color_host_remote
|
||||
set -U fish_pager_color_selected_description
|
||||
set -U fish_pager_color_selected_completion
|
||||
set -U fish_pager_color_secondary_completion
|
||||
set -U fish_pager_color_secondary_background
|
||||
set -U fish_color_keyword
|
||||
set -U fish_pager_color_selected_prefix
|
||||
set -U fish_pager_color_background
|
||||
set -U fish_pager_color_secondary_prefix
|
||||
set -U fish_pager_color_secondary_description
|
||||
set -U fish_color_host_remote
|
||||
set -U fish_color_option
|
||||
|
||||
# Bobthefish config
|
||||
|
|
@ -42,4 +42,4 @@ set -g theme_date_timezone Europe/Copenhagen
|
|||
set -g theme_date_format "+%a %H:%M"
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_color_scheme terminal
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_display_user ssh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue