diff --git a/conf.d/forgit.plugin.fish b/conf.d/forgit.plugin.fish index 9d98407..e79bdfd 100644 --- a/conf.d/forgit.plugin.fish +++ b/conf.d/forgit.plugin.fish @@ -257,7 +257,7 @@ function forgit::checkout::branch -d "git checkout branch selector" --argument-n $FORGIT_CHECKOUT_BRANCH_FZF_OPTS " - set cmd "git branch --color=always --all | sort -k1.1,1.1 -r" + set cmd "git branch --color=always --all | LC_ALL=C sort -k1.1,1.1 -rs" set branch (eval "$cmd" | FZF_DEFAULT_OPTS="$opts" fzf | awk '{print $1}') test -z "$branch" && return 1 diff --git a/forgit.plugin.zsh b/forgit.plugin.zsh index b7a093c..5442c82 100755 --- a/forgit.plugin.zsh +++ b/forgit.plugin.zsh @@ -235,7 +235,7 @@ forgit::checkout::branch() { forgit::inside_work_tree || return 1 [[ $# -ne 0 ]] && { git checkout -b "$@"; return $?; } local cmd preview opts branch - cmd="git branch --color=always --all | sort -k1.1,1.1 -r" + cmd="git branch --color=always --all | LC_ALL=C sort -k1.1,1.1 -rs" preview="git log {1} --graph --pretty=format:'$forgit_log_format' --color=always --abbrev-commit --date=relative" opts=" $FORGIT_FZF_DEFAULT_OPTS