aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--share/config.fish10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/config.fish b/share/config.fish
index 5eac39bf..14b91446 100644
--- a/share/config.fish
+++ b/share/config.fish
@@ -130,3 +130,13 @@ function . --description 'Evaluate contents of file (deprecated, see "source")'
source $argv
end
end
+
+# Fix lame terminals lying about their encoding (UTF-8 when it's not).
+function __fish_update_charset --on-variable LANG
+ switch $LANG
+ case \*.UTF-8
+ echo -n \e%G
+ end
+end
+
+__fish_update_charset