add fish shell config
This commit is contained in:
parent
e01cd5110c
commit
5569b6fe10
60 changed files with 1185 additions and 1 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue