<commit_before>m4_include(user_config.m4)m4_dnl
m4_include(env_config.m4)m4_dnl
# Plugins
set fish_function_path $fish_function_path "$HOME/.config/fish/plugins/foreign-env/functions"

set -g fish_color_cwd yellow
set -g fish_pager_color_description cea746

# Disable greeting message
set fish_greeting ""

# Coloured man pages
set -x LESS_TERMCAP_mb (printf \e"[01;31m")
set -x LESS_TERMCAP_md (printf \e"[01;38;5;74m")
set -x LESS_TERMCAP_me (printf \e"[0m")
set -x LESS_TERMCAP_se (printf \e"[0m")
set -x LESS_TERMCAP_so (printf \e"[38;5;246m")
set -x LESS_TERMCAP_ue (printf \e"[0m")
set -x LESS_TERMCAP_us (printf \e"[04;38;5;146m")

# Set SHELL
set --global -x SHELL (which fish)

# Set editor to vim
set --global -x EDITOR vim

# Set hostname icon
set -x HOSTNAME_ICON (hostname-icon)

# Add user's bin to path
if test -d "$HOME/bin"
	set --global fish_user_paths $fish_user_paths "$HOME/bin"
end
if test -d "$HOME/.local/bin"
	set --global fish_user_paths $fish_user_paths "$HOME/.local/bin"
end
# Add user's library to LD_LIBRARY_PATH
if test -d "$HOME/lib"
	set --global -x LD_LIBRARY_PATH (set -q LD_LIBRARY_PATH; and echo $LD_LIBRARY_PATH:; or echo)"$HOME/lib"
end
if test -d "$HOME/.local/lib"
	set --global -x LD_LIBRARY_PATH (set -q LD_LIBRARY_PATH; and echo $LD_LIBRARY_PATH:; or echo)"$HOME/.local/lib"
end

m4_ifdef(??[[<<m4_env_config_CUDA_ROOT>>]]??,
# CUDA Path
set --global -x CUDA_HOME "m4_env_config_CUDA_ROOT"
set --global -x LD_LIBRARY_PATH (set -q LD_LIBRARY_PATH; and echo $LD_LIBRARY_PATH:; or echo)"$CUDA_HOME/lib64"
set --local CUPTI_LIB "$CUDA_HOME/extras/CUPTI/lib64"
if test -d "$CUPTI_LIB"
set --global -x LD_LIBRARY_PATH (set -q LD_LIBRARY_PATH; and echo $LD_LIBRARY_PATH:; or echo)"$CUPTI_LIB"
end
)m4_dnl
m4_ifdef(??[[<<m4_env_config_CUDA_BIN>>]]??,
set --global fish_user_paths $fish_user_paths "m4_env_config_CUDA_BIN"
)m4_dnl

m4_ifdef(??[[<<m4_env_config_GOROOT>>]]??,
# Go Path
set --global -x GOROOT "m4_env_config_GOROOT"
set --global fish_user_paths $fish_user_paths "$GOROOT/bin"
)m4_dnl

m4_ifdef(??[[<<m4_env_config_GEM_BIN_PATH>>]]??,
# Add ruby gem bin directory to path
set --global fish_user_paths $fish_user_paths (echo "m4_env_config_GEM_BIN_PATH" | sed 's/:/\n/g')
)m4_dnl

m4_ifdef(??[[<<m4_env_config_BREW_BIN_PATH>>]]??,
set --global fish_user_paths $fish_user_paths "m4_env_config_BREW_BIN_PATH"
)m4_dnl

m4_ifdef(??[[<<m4_env_config_KEYCHAIN>>]]??,
# Start keychain - ensures ssh-agent is running.
if status --is-interactive
	keychain --eval --agents ssh --quick --quiet | source
end
)m4_dnl

m4_ifdef(??[[<<m4_env_config_VIRTUALFISH>>]]??,
# Enable virtualfish auto-activation.
eval (python -m virtualfish auto_activation global_requirements)
)m4_dnl

m4_ifdef(??[[<<m4_env_config_GEM_BIN_PATH>>]]??,
# Mujoco Library Path
set --global -x LD_LIBRARY_PATH (set -q LD_LIBRARY_PATH; and echo $LD_LIBRARY_PATH:; or echo)"m4_env_config_MUJOCO_LIB"
)m4_dnl<commit_msg>fish: Source environment variables from env_profile<commit_after>m4_include(user_config.m4)m4_dnl
m4_include(env_config.m4)m4_dnl
# Plugins
set fish_function_path $fish_function_path "$HOME/.config/fish/plugins/foreign-env/functions"

set -g fish_color_cwd yellow
set -g fish_pager_color_description cea746

# Disable greeting message
set fish_greeting ""

# Coloured man pages
set -x LESS_TERMCAP_mb (printf \e"[01;31m")
set -x LESS_TERMCAP_md (printf \e"[01;38;5;74m")
set -x LESS_TERMCAP_me (printf \e"[0m")
set -x LESS_TERMCAP_se (printf \e"[0m")
set -x LESS_TERMCAP_so (printf \e"[38;5;246m")
set -x LESS_TERMCAP_ue (printf \e"[0m")
set -x LESS_TERMCAP_us (printf \e"[04;38;5;146m")

# Set SHELL
set --global -x SHELL (which fish)

# Set hostname icon
set -x HOSTNAME_ICON (hostname-icon)

# Source environment variables from ~/.env_profile using the foreign env plugin.
fenv source "$HOME/.env_profile"

m4_ifdef(??[[<<m4_env_config_KEYCHAIN>>]]??,
# Start keychain - ensures ssh-agent is running.
if status --is-interactive
	keychain --eval --agents ssh --quick --quiet | source
end
)m4_dnl

m4_ifdef(??[[<<m4_env_config_VIRTUALFISH>>]]??,
# Enable virtualfish auto-activation.
eval (python -m virtualfish auto_activation global_requirements)
)m4_dnl
{'fraction_non_alphanumeric': 0.13680937574742885, 'fraction_numerical': 0.0272662042573547, 'mean_word_length': 5.648648648648648, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '2614927', 'n_tokens_mistral': 1829, 'n_tokens_neox': 1735, 'n_words': 400}