add fish shell config

This commit is contained in:
Alexander Navarro 2025-06-06 09:35:53 -04:00
parent e01cd5110c
commit 5569b6fe10
60 changed files with 1185 additions and 1 deletions

View file

@ -0,0 +1,9 @@
function _pure_string_width \
--description 'returns raw string length, i.e. ignore ANSI-color' \
--argument-names prompt
set --local empty ''
set --local raw_prompt (string replace --all --regex '\e\[[^m]*m' $empty -- $prompt)
string length -- $raw_prompt
end