From a4cc874e76d72613555b64c13c9c689d707e0f19 Mon Sep 17 00:00:00 2001 From: Daddef Date: Sat, 26 Jul 2025 15:54:14 +0200 Subject: [PATCH] Init base file --- conf.d/myabbrs.fish | 16 ++++++++++++++++ config.fish | 18 ++++++++++++++++++ functions/fish_prompt.fish | 3 +++ 3 files changed, 37 insertions(+) create mode 100644 conf.d/myabbrs.fish create mode 100644 config.fish create mode 100644 functions/fish_prompt.fish diff --git a/conf.d/myabbrs.fish b/conf.d/myabbrs.fish new file mode 100644 index 0000000..ef76a60 --- /dev/null +++ b/conf.d/myabbrs.fish @@ -0,0 +1,16 @@ +abbr -a -- cl clear +abbr -a -- docker podman +abbr -a -- g git +#abbr -a -- gs 'git status' +abbr -a -- l ezals +abbr -a -- ll 'ezals -TL2' +abbr -a -- ls ezals +abbr -a -- q exit +abbr -a -- v nvim +abbr -a --position anywhere --command git -- a add +abbr -a --position anywhere --command git -- b branch +abbr -a --position anywhere --command git -- c commit +abbr -a --position anywhere --command git -- co checkout +abbr -a --position anywhere --command git -- d diff +abbr -a --position anywhere --command git -- s status + diff --git a/config.fish b/config.fish new file mode 100644 index 0000000..b3bb499 --- /dev/null +++ b/config.fish @@ -0,0 +1,18 @@ +set -g fish_greeting "Hi Dadd" + +# set nvim editor +set -g EDITOR nvim + +if status is-interactive + # Commands to run in interactive sessions can go here + fish_vi_key_bindings + + + set -g fish_sequence_key_delay_ms 200 + bind -M insert -m default j,k cancel repaint-mode + bind -M insert \cn \\t + + fzf_configure_bindings --git_status=\cg --history=\cr --variables= --processes= + #zellij + tmux +end diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish new file mode 100644 index 0000000..bbafa9f --- /dev/null +++ b/functions/fish_prompt.fish @@ -0,0 +1,3 @@ +function fish_prompt --description Hydro + echo -e "$_hydro_color_start$hydro_symbol_start$hydro_color_normal$_hydro_color_pwd$_hydro_pwd$hydro_color_normal $_hydro_color_git$$_hydro_git$hydro_color_normal$_hydro_color_duration$_hydro_cmd_duration$hydro_color_normal$_hydro_status$hydro_color_normal " +end