huge rework in order to take full advantage of ansible roles

This commit is contained in:
aminnairi
2023-12-30 17:05:26 +01:00
parent b961d14b97
commit bf3625081d
73 changed files with 506 additions and 532 deletions
@@ -0,0 +1,7 @@
# Path to Oh My Fish install.
set -q XDG_DATA_HOME
and set -gx OMF_PATH "$XDG_DATA_HOME/omf"
or set -gx OMF_PATH "$HOME/.local/share/omf"
# Load Oh My Fish configuration.
source $OMF_PATH/init.fish
+69
View File
@@ -0,0 +1,69 @@
if status is-interactive
# Enable vi-mode
fish_vi_key_bindings
# Set the keyboard rate
xset r rate 200 50
# Set the editor to use vim
set --export --global EDITOR nvim
# 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="eza --icons --long --classify --git --total-size --header --created --accessed --modified"
# Add ruby in the global path for Neovim
fish_add_path ~/.local/share/gem/ruby/3.0.0/bin
# 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 aminnairi
set -g theme_color_scheme dark
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 '$ '
# Run neofetch on each fish startup
neofetch
end
@@ -0,0 +1,31 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:555\x1ebrblack
SETUVAR fish_color_cancel:\x2dr
SETUVAR fish_color_command:blue
SETUVAR fish_color_comment:red
SETUVAR fish_color_cwd:green
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:green
SETUVAR fish_color_error:brred
SETUVAR fish_color_escape:brcyan
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:yellow
SETUVAR fish_color_normal:normal
SETUVAR fish_color_operator:brcyan
SETUVAR fish_color_param:cyan
SETUVAR fish_color_quote:yellow
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
SETUVAR fish_color_search_match:\x2d\x2dbackground\x3d111
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x2d\x2dunderline
SETUVAR fish_key_bindings:fish_vi_key_bindings
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D\x1eyellow\x1e\x2di
SETUVAR fish_pager_color_prefix:cyan\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_selected_background:\x2dr
@@ -0,0 +1,5 @@
function decrease_brightness_by --argument-names amount
set --local brightness (cat /sys/class/backlight/*/brightness)
set --local brightness_increased (math $brightness - $amount)
echo $brightness_increased | sudo tee /sys/class/backlight/*/brightness > /dev/null
end
@@ -0,0 +1,5 @@
function increase_brightness_by --argument-names amount
set --local brightness (cat /sys/class/backlight/*/brightness)
set --local brightness_increased (math $brightness + $amount)
echo $brightness_increased | sudo tee /sys/class/backlight/*/brightness > /dev/null
end
@@ -0,0 +1,3 @@
function set_brightness --argument-names amount
echo $amount | sudo tee /sys/class/backlight/*/brightness > /dev/null
end
@@ -0,0 +1,17 @@
function tmux
if test (count $argv) -eq 0
if type -q omf
# Update Oh My Fish if it installed
omf update
end
end
# Install Tmux plugins
~/.tmux/plugins/tpm/bin/install_plugins
# Update Tmux plugins
~/.tmux/plugins/tpm/bin/install_plugins
# Execute TMUX
/usr/bin/tmux -u $argv
end
+3
View File
@@ -0,0 +1,3 @@
theme bobthefish
theme agnoster
theme default
+1
View File
@@ -0,0 +1 @@
stable
+1
View File
@@ -0,0 +1 @@
agnoster