diff --git a/.config/fish/config.fish b/.config/fish/config.fish new file mode 100644 index 0000000..fe8e766 --- /dev/null +++ b/.config/fish/config.fish @@ -0,0 +1,3 @@ +set -x EDITOR vim +set -x PAGER less +set -x fish_prompt_pwd_dir_length 1 diff --git a/.config/fish/functions/fish_prompt.fish b/.config/fish/functions/fish_prompt.fish new file mode 100644 index 0000000..d7a7d70 --- /dev/null +++ b/.config/fish/functions/fish_prompt.fish @@ -0,0 +1,11 @@ +function fish_prompt + set test $status + set_color -o green + echo -n (hostname) + set_color normal + echo -n ':' + set_color -o blue + prompt_pwd | tr -d '\n' + set_color normal + echo -n " $test\$ " +end diff --git a/.config/fish/functions/mark.fish b/.config/fish/functions/mark.fish new file mode 100644 index 0000000..9ae098a --- /dev/null +++ b/.config/fish/functions/mark.fish @@ -0,0 +1,4 @@ +function mark + eval printf "\%0{$COLUMNS}d" | sed -e "s/0/=/g" | lolcat + eval printf "\%0{$COLUMNS}d" | sed -e "s/0/=/g" | lolcat +end