From 398fa8200f7df1a1b6c69ce846ccbb2868b14b8b Mon Sep 17 00:00:00 2001 From: Gil Portenseigne Date: Fri, 23 Feb 2024 09:25:16 +0100 Subject: [PATCH] Ajout config fish --- .config/fish/config.fish | 3 +++ .config/fish/fish_variables | 31 ++++++++++++++++++++++ .config/fish/functions/fluxUp.fish | 4 +++ .config/fish/functions/k.fish | 4 +++ .config/fish/functions/kctx.fish | 4 +++ .config/fish/functions/kns.fish | 4 +++ .config/fish/functions/reducePdf.fish | 4 +++ .config/fish/functions/resetTestDb.fish | 4 +++ .config/fish/functions/sysup.fish | 4 +++ .config/fish/functions/testIntegOFbiz.fish | 4 +++ .config/fish/functions/testRfid.fish | 4 +++ .config/fish/functions/tn.fish | 4 +++ .config/fish/functions/todo.fish | 4 +++ .config/fish/functions/tp.fish | 4 +++ .config/fish/functions/windows.fish | 4 +++ .config/fish/functions/ya.fish | 4 +++ .config/fish/functions/yc.fish | 4 +++ .config/fish/functions/yd.fish | 4 +++ .config/fish/functions/yp.fish | 4 +++ .config/fish/functions/ys.fish | 4 +++ .config/fish/functions/yup.fish | 4 +++ 21 files changed, 110 insertions(+) create mode 100644 .config/fish/config.fish create mode 100644 .config/fish/fish_variables create mode 100644 .config/fish/functions/fluxUp.fish create mode 100644 .config/fish/functions/k.fish create mode 100644 .config/fish/functions/kctx.fish create mode 100644 .config/fish/functions/kns.fish create mode 100644 .config/fish/functions/reducePdf.fish create mode 100644 .config/fish/functions/resetTestDb.fish create mode 100644 .config/fish/functions/sysup.fish create mode 100644 .config/fish/functions/testIntegOFbiz.fish create mode 100644 .config/fish/functions/testRfid.fish create mode 100644 .config/fish/functions/tn.fish create mode 100644 .config/fish/functions/todo.fish create mode 100644 .config/fish/functions/tp.fish create mode 100644 .config/fish/functions/windows.fish create mode 100644 .config/fish/functions/ya.fish create mode 100644 .config/fish/functions/yc.fish create mode 100644 .config/fish/functions/yd.fish create mode 100644 .config/fish/functions/yp.fish create mode 100644 .config/fish/functions/ys.fish create mode 100644 .config/fish/functions/yup.fish diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..d714361 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,3 @@ +if status is-interactive + # Commands to run in interactive sessions can go here +end diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..1a82b8a --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3400 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:blue +SETUVAR fish_color_comment:red +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:green +SETUVAR fish_color_error:brred +SETUVAR fish_color_escape:brcyan +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:brcyan +SETUVAR fish_color_param:cyan +SETUVAR fish_color_quote:yellow +SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +SETUVAR fish_color_status:red +SETUVAR fish_color_user:brgreen +SETUVAR fish_color_valid_path:\x2d\x2dunderline +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr diff --git a/.config/fish/functions/fluxUp.fish b/.config/fish/functions/fluxUp.fish new file mode 100644 index 0000000..559abff --- /dev/null +++ b/.config/fish/functions/fluxUp.fish @@ -0,0 +1,4 @@ +function fluxUp --wraps='flux reconcile source git flux-system' --description 'alias fluxUp=flux reconcile source git flux-system' + flux reconcile source git flux-system $argv + +end diff --git a/.config/fish/functions/k.fish b/.config/fish/functions/k.fish new file mode 100644 index 0000000..72d8f1e --- /dev/null +++ b/.config/fish/functions/k.fish @@ -0,0 +1,4 @@ +function k --wraps=kubectl --description 'alias k=kubectl' + kubectl $argv + +end diff --git a/.config/fish/functions/kctx.fish b/.config/fish/functions/kctx.fish new file mode 100644 index 0000000..21fb7dd --- /dev/null +++ b/.config/fish/functions/kctx.fish @@ -0,0 +1,4 @@ +function kctx --wraps=kubectx --description 'alias kctx=kubectx' + kubectx $argv + +end diff --git a/.config/fish/functions/kns.fish b/.config/fish/functions/kns.fish new file mode 100644 index 0000000..6e83cbf --- /dev/null +++ b/.config/fish/functions/kns.fish @@ -0,0 +1,4 @@ +function kns --wraps=kubens --description 'alias kns=kubens' + kubens $argv + +end diff --git a/.config/fish/functions/reducePdf.fish b/.config/fish/functions/reducePdf.fish new file mode 100644 index 0000000..05149c1 --- /dev/null +++ b/.config/fish/functions/reducePdf.fish @@ -0,0 +1,4 @@ +function reducePdf --wraps='gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dBATCH -dColorImageResolution=150 -sOutputFile=output.pdf' --description 'alias reducePdf=gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dBATCH -dColorImageResolution=150 -sOutputFile=output.pdf' + gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dBATCH -dColorImageResolution=150 -sOutputFile=output.pdf $argv + +end diff --git a/.config/fish/functions/resetTestDb.fish b/.config/fish/functions/resetTestDb.fish new file mode 100644 index 0000000..ad3bb1a --- /dev/null +++ b/.config/fish/functions/resetTestDb.fish @@ -0,0 +1,4 @@ +function resetTestDb --wraps='dropdb ofbiz && createdb ofbiz && ./gradlew "ofbiz -l readers=seed,seed-initial -l delegator=test"' --description 'alias resetTestDb=dropdb ofbiz && createdb ofbiz && ./gradlew "ofbiz -l readers=seed,seed-initial -l delegator=test"' + dropdb ofbiz && createdb ofbiz && ./gradlew "ofbiz -l readers=seed,seed-initial -l delegator=test" $argv + +end diff --git a/.config/fish/functions/sysup.fish b/.config/fish/functions/sysup.fish new file mode 100644 index 0000000..f59a64f --- /dev/null +++ b/.config/fish/functions/sysup.fish @@ -0,0 +1,4 @@ +function sysup --wraps='sudo apt update && sudo apt upgrade -y' --description 'alias sysup=sudo apt update && sudo apt upgrade -y' + sudo apt update && sudo apt upgrade -y $argv + +end diff --git a/.config/fish/functions/testIntegOFbiz.fish b/.config/fish/functions/testIntegOFbiz.fish new file mode 100644 index 0000000..6a2e530 --- /dev/null +++ b/.config/fish/functions/testIntegOFbiz.fish @@ -0,0 +1,4 @@ +function testIntegOFbiz --wraps='./gradlew cleanAll loadAll testIntegration' --description 'alias testIntegOFbiz=./gradlew cleanAll loadAll testIntegration' + ./gradlew cleanAll loadAll testIntegration $argv + +end diff --git a/.config/fish/functions/testRfid.fish b/.config/fish/functions/testRfid.fish new file mode 100644 index 0000000..5266ea7 --- /dev/null +++ b/.config/fish/functions/testRfid.fish @@ -0,0 +1,4 @@ +function testRfid --wraps='./gradlew "ofbiz --test component=rfid --test delegator=test"' --description 'alias testRfid=./gradlew "ofbiz --test component=rfid --test delegator=test"' + ./gradlew "ofbiz --test component=rfid --test delegator=test" $argv + +end diff --git a/.config/fish/functions/tn.fish b/.config/fish/functions/tn.fish new file mode 100644 index 0000000..151da7b --- /dev/null +++ b/.config/fish/functions/tn.fish @@ -0,0 +1,4 @@ +function tn --wraps='ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon' --description 'alias tn=ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon' + ssh -L localhost:5488:emb-ofbiz-nereide-ofbiz2-rds.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon $argv + +end diff --git a/.config/fish/functions/todo.fish b/.config/fish/functions/todo.fish new file mode 100644 index 0000000..d1fa315 --- /dev/null +++ b/.config/fish/functions/todo.fish @@ -0,0 +1,4 @@ +function todo --wraps='vi ~/Nextcloud/TODO/todo.txt' --description 'alias todo=vi ~/Nextcloud/TODO/todo.txt' + vi ~/Nextcloud/TODO/todo.txt $argv + +end diff --git a/.config/fish/functions/tp.fish b/.config/fish/functions/tp.fish new file mode 100644 index 0000000..5ba3149 --- /dev/null +++ b/.config/fish/functions/tp.fish @@ -0,0 +1,4 @@ +function tp --wraps='ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon' --description 'alias tp=ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon' + ssh -L localhost:5488:emb-ofbiz-prep-ofbiz2-rds-encrypted.ckerltpo0vvy.eu-west-1.rds.amazonaws.com:5432 bastion.decathlon $argv + +end diff --git a/.config/fish/functions/windows.fish b/.config/fish/functions/windows.fish new file mode 100644 index 0000000..edb0741 --- /dev/null +++ b/.config/fish/functions/windows.fish @@ -0,0 +1,4 @@ +function windows --wraps=reboot_to_windows --description 'alias windows=reboot_to_windows' + reboot_to_windows $argv + +end diff --git a/.config/fish/functions/ya.fish b/.config/fish/functions/ya.fish new file mode 100644 index 0000000..c774778 --- /dev/null +++ b/.config/fish/functions/ya.fish @@ -0,0 +1,4 @@ +function ya --wraps='yadm add' --description 'alias ya=yadm add' + yadm add $argv + +end diff --git a/.config/fish/functions/yc.fish b/.config/fish/functions/yc.fish new file mode 100644 index 0000000..bc32bed --- /dev/null +++ b/.config/fish/functions/yc.fish @@ -0,0 +1,4 @@ +function yc --wraps='yadm commit -v' --description 'alias yc=yadm commit -v' + yadm commit -v $argv + +end diff --git a/.config/fish/functions/yd.fish b/.config/fish/functions/yd.fish new file mode 100644 index 0000000..444ff67 --- /dev/null +++ b/.config/fish/functions/yd.fish @@ -0,0 +1,4 @@ +function yd --wraps='yadm diff' --description 'alias yd=yadm diff' + yadm diff $argv + +end diff --git a/.config/fish/functions/yp.fish b/.config/fish/functions/yp.fish new file mode 100644 index 0000000..4be95b7 --- /dev/null +++ b/.config/fish/functions/yp.fish @@ -0,0 +1,4 @@ +function yp --wraps='yadm push' --description 'alias yp=yadm push' + yadm push $argv + +end diff --git a/.config/fish/functions/ys.fish b/.config/fish/functions/ys.fish new file mode 100644 index 0000000..8439bf9 --- /dev/null +++ b/.config/fish/functions/ys.fish @@ -0,0 +1,4 @@ +function ys --wraps='yadm status' --description 'alias ys=yadm status' + yadm status $argv + +end diff --git a/.config/fish/functions/yup.fish b/.config/fish/functions/yup.fish new file mode 100644 index 0000000..163171d --- /dev/null +++ b/.config/fish/functions/yup.fish @@ -0,0 +1,4 @@ +function yup --wraps='yadm pull --rebase' --description 'alias yup=yadm pull --rebase' + yadm pull --rebase $argv + +end