From 9bbee626d785f51092b242fd5269733774ac6dc6 Mon Sep 17 00:00:00 2001 From: Severin Kaderli Date: Sun, 5 Jan 2025 17:25:18 +0100 Subject: [PATCH] Switch default shell to fish --- .install/shell.sh | 6 +++--- .install/symlinks.sh | 1 + system/.config/fish/config.fish | 6 ++++++ system/.config/fish/fish_variables | 31 ++++++++++++++++++++++++++++++ 4 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 system/.config/fish/config.fish create mode 100644 system/.config/fish/fish_variables diff --git a/.install/shell.sh b/.install/shell.sh index 2ec21d9..47caf57 100644 --- a/.install/shell.sh +++ b/.install/shell.sh @@ -10,6 +10,6 @@ # Sets default shell output::section "Shell" -output::log "Setting default shell to zsh" -sudo chsh -s "/bin/zsh" "${USER}" -output::success "Successfully set default shell to zsh" +output::log "Setting default shell to fish" +sudo chsh -s "/usr/bin/fish" "${USER}" +output::success "Successfully set default shell to fish" diff --git a/.install/symlinks.sh b/.install/symlinks.sh index 3742ee5..d9e0916 100644 --- a/.install/symlinks.sh +++ b/.install/symlinks.sh @@ -26,6 +26,7 @@ CONFIG_LINKED_FILES_HOME=( ".config/environment.d" ".config/Element" ".config/espanso" + ".config/fish" ".config/fontconfig" ".config/git" ".config/gtk-2.0" diff --git a/system/.config/fish/config.fish b/system/.config/fish/config.fish new file mode 100644 index 0000000..34cb415 --- /dev/null +++ b/system/.config/fish/config.fish @@ -0,0 +1,6 @@ +# Alias for using lsd as ls replacement +alias ls="lsd" +alias la="lsd -al" +alias lt="lsd --tree" + +starship init fish | source diff --git a/system/.config/fish/fish_variables b/system/.config/fish/fish_variables new file mode 100644 index 0000000..74b1ee1 --- /dev/null +++ b/system/.config/fish/fish_variables @@ -0,0 +1,31 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR __fish_initialized:3800 +SETUVAR fish_color_autosuggestion:brblack +SETUVAR fish_color_cancel:\x2dr +SETUVAR fish_color_command:normal +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:white\x1e\x2d\x2dbackground\x3dbrblack +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_default_key_bindings +SETUVAR fish_pager_color_completion:normal +SETUVAR fish_pager_color_description:yellow\x1e\x2di +SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +SETUVAR fish_pager_color_selected_background:\x2dr