From 358b25485bec304fa67b019263947bbd01681f57 Mon Sep 17 00:00:00 2001 From: Louis Vallat Date: Wed, 14 Apr 2021 12:10:24 +0200 Subject: [PATCH] Added fish shell dotfiles Signed-off-by: Louis Vallat --- .config/fish/conf.d/omf.fish | 7 ++++++ .config/fish/fish_variables | 33 +++++++++++++++++++++++++ .config/fish/functions/dotfiles.fish | 4 +++ .config/fish/functions/emacs.fish | 4 +++ .config/fish/functions/fish_prompt.fish | 1 + .config/fish/functions/ls.fish | 3 +++ 6 files changed, 52 insertions(+) create mode 100644 .config/fish/conf.d/omf.fish create mode 100644 .config/fish/fish_variables create mode 100644 .config/fish/functions/dotfiles.fish create mode 100755 .config/fish/functions/emacs.fish create mode 120000 .config/fish/functions/fish_prompt.fish create mode 100755 .config/fish/functions/ls.fish diff --git a/.config/fish/conf.d/omf.fish b/.config/fish/conf.d/omf.fish new file mode 100644 index 0000000..3e0f6d6 --- /dev/null +++ b/.config/fish/conf.d/omf.fish @@ -0,0 +1,7 @@ +# Path to Oh My Fish install. +set -q XDG_DATA_HOME + and set -gx OMF_PATH "$XDG_DATA_HOME/omf" + or set -gx OMF_PATH "$HOME/.local/share/omf" + +# Load Oh My Fish configuration. +source $OMF_PATH/init.fish diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables new file mode 100644 index 0000000..c6f8e55 --- /dev/null +++ b/.config/fish/fish_variables @@ -0,0 +1,33 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3100 +SETUVAR fish_color_autosuggestion:555\x1ebrblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:005fd7 +SETUVAR fish_color_comment:990000 +SETUVAR fish_color_cwd:green +SETUVAR fish_color_cwd_root:red +SETUVAR fish_color_end:009900 +SETUVAR fish_color_error:ff0000 +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +SETUVAR fish_color_host_remote:yellow +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +SETUVAR fish_color_normal:normal +SETUVAR fish_color_operator:00a6b2 +SETUVAR fish_color_param:00afff +SETUVAR fish_color_quote:999900 +SETUVAR fish_color_redirection:00afff +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_greeting: +SETUVAR fish_key_bindings:fish_default_key_bindings +SETUVAR fish_pager_color_completion:\x1d +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_user_paths:/home/louis/\x2elocal/bin diff --git a/.config/fish/functions/dotfiles.fish b/.config/fish/functions/dotfiles.fish new file mode 100644 index 0000000..6978298 --- /dev/null +++ b/.config/fish/functions/dotfiles.fish @@ -0,0 +1,4 @@ +# Defined via `source` +function dotfiles --wraps='/usr/bin/git --git-dir=/home/louis/.dotfiles/ --work-tree=/home/louis' --description 'alias dotfiles=/usr/bin/git --git-dir=/home/louis/.dotfiles/ --work-tree=/home/louis' + /usr/bin/git --git-dir=/home/louis/.dotfiles/ --work-tree=/home/louis $argv; +end diff --git a/.config/fish/functions/emacs.fish b/.config/fish/functions/emacs.fish new file mode 100755 index 0000000..5c639a2 --- /dev/null +++ b/.config/fish/functions/emacs.fish @@ -0,0 +1,4 @@ +# Defined in - @ line 1 +function emacs --wraps='emacs -nw' --description 'alias emacs=emacs -nw' + command emacs -nw $argv; +end diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 120000 index 0000000..446f0ce --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1 @@ +/home/louis/.local/share/omf/themes/agnoster/fish_prompt.fish \ No newline at end of file diff --git a/.config/fish/functions/ls.fish b/.config/fish/functions/ls.fish new file mode 100755 index 0000000..0fe99d0 --- /dev/null +++ b/.config/fish/functions/ls.fish @@ -0,0 +1,3 @@ +function ls --wraps='lsd -l' +lsd -l $argv +end