Files
dotfiles/fish/config.fish
T

67 lines
2.0 KiB
Fish

if status is-interactive
# Enable vi-mode
fish_vi_key_bindings
# Set the keyboard rate
xset r rate 150 30
# Set the editor to use vim
set --export --global EDITOR nvim
# Set the terminal
set --export --global TERM "screen-256color"
# Install OMF if it is not already
if test ! -d ~/.local/share/omf
curl -L https://get.oh-my.fish | fish
end
# Alias for the cat command
alias cat="bat --theme ColdDark-Cold"
# Alias for the ls command
alias ls="exa --icons --long --classify"
# configuration for Oh My Fish BobTheFish theme
set -g theme_display_git yes
set -g theme_display_git_dirty yes
set -g theme_display_git_untracked yes
set -g theme_display_git_ahead_verbose yes
set -g theme_display_git_dirty_verbose yes
set -g theme_display_git_stashed_verbose yes
set -g theme_display_git_default_branch yes
set -g theme_git_default_branches development master main
set -g theme_git_worktree_support yes
set -g theme_use_abbreviated_branch_name yes
set -g theme_display_vagrant no
set -g theme_display_docker_machine yes
set -g theme_display_k8s_context yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_nix no
set -g theme_display_ruby no
set -g theme_display_node yes
set -g theme_display_user ssh
set -g theme_display_hostname ssh
set -g theme_display_vi yes
set -g theme_display_date yes
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes
set -g theme_title_display_path no
set -g theme_title_display_user yes
set -g theme_title_use_abbreviated_path no
set -g theme_date_format "+%a %H:%M"
set -g theme_date_timezone Europe/Paris
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_powerline_fonts yes
set -g theme_nerd_fonts yes
set -g theme_show_exit_status yes
set -g theme_display_jobs_verbose yes
set -g default_user your_normal_user
set -g theme_color_scheme light
set -g fish_prompt_pwd_dir_length 0
set -g theme_project_dir_length 1
set -g theme_newline_cursor yes
set -g theme_newline_prompt '$ '
end