<commit_before>#---------------+
#    alias      |
#---------------+
function c  --description 'Clear screen'
    clear
end

function cmake-clang --description 'Use clang as the C/C++ compiler'
    command cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang $argv
end

function df --description 'Print sizes in human readable'
    command df -h $argv
end

function man --description 'Use vim viewer to display manpage'
    command man $argv | col -b | command view -c 'set ft=man ts=8 nomod nolist' -
end

function rm --description 'Remove interactively'
    command rm -i $argv
end

# htop can't refresh when TERM is rxvt-unicode-256color
function t  --description 'Resource top usage'
    env TERM=screen htop $argv
end

#---------------+
#    env        |
#---------------+
set -x EDITOR   vim
set -x GOPATH   $HOME/github/lab/go
set -x PATH     $HOME/gitlab/bin $GOPATH/bin /usr/local/go/bin /usr/local/go_appengine $PATH

set -x GTK_IM_MODULE    fcitx
set -x QT_IM_MODULE     fcitx
set -x XMODIFIERS       @im=fcitx
set -x XIM              fcitx

#---------------+
#    tmux title |
#---------------+
# Set the tmux window title, depending on whether we are running something, or just prompting
function fish_title --description 'Set tmux title'<commit_msg>update ssh<commit_after>#---------------+
#    alias      |
#---------------+
function c  --description 'Clear screen'
    clear
end

function cmake-clang --description 'Use clang as the C/C++ compiler'
    command cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang $argv
end

function df --description 'Print sizes in human readable'
    command df -h $argv
end

function man --description 'Use vim viewer to display manpage'
    command man $argv | col -b | command view -c 'set ft=man ts=8 nomod nolist' -
end

function rm --description 'Remove interactively'
    command rm -i $argv
end

# htop can't refresh when TERM is rxvt-unicode-256color
function t  --description 'Resource top usage'
    env TERM=screen htop $argv
end

function ssh --description 'SSH'
    env TERM=screen ssh $argv
end

#---------------+
#    env        |
#---------------+
set -x EDITOR   vim
set -x GOPATH   $HOME/github/lab/go
set -x PATH     $HOME/gitlab/bin $GOPATH/bin /usr/local/go/bin /usr/local/go_appengine $PATH

set -x GTK_IM_MODULE    fcitx
set -x QT_IM_MODULE     fcitx
set -x XMODIFIERS       @im=fcitx
set -x XIM              fcitx

#---------------+
#    tmux title |
#---------------+
# Set the tmux window title, depending on whether we are running something, or just prompting
function fish_title --description 'Set tmux title'
{'fraction_non_alphanumeric': 0.15378700499807765, 'fraction_numerical': 0.0030757400999615533, 'mean_word_length': 2.318877551020408, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6531662', 'n_tokens_mistral': 868, 'n_tokens_neox': 833, 'n_words': 297}