fixes fish config on work mac
This commit is contained in:
parent
ecfdef0d47
commit
178f6c2f72
3 changed files with 54 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ config, pkgs, ... }:
|
||||
{ _config, _pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.fish = {
|
||||
|
|
@ -141,11 +141,32 @@
|
|||
pr_comments = ''
|
||||
gh api repos/digital-h-gmbh/ride/pulls/$argv/comments | jq -r '.[] | "- [ ] Fix \nnvim +\(.line) \(.path)\n\"\(.body)\"\n\n"' >./pr-comments.md && nvim ./pr-comments.md
|
||||
'';
|
||||
fish_mode_prompt = ''
|
||||
switch $fish_bind_mode
|
||||
case default
|
||||
set_color --bold blue
|
||||
echo '[N] '
|
||||
case insert
|
||||
set_color --bold green
|
||||
echo '[I] '
|
||||
case replace_one
|
||||
set_color --bold green
|
||||
echo '[R] '
|
||||
case replace
|
||||
set_color --bold bryellow
|
||||
echo '[R] '
|
||||
case visual
|
||||
set_color --bold brmagenta
|
||||
echo '[V] '
|
||||
case '*'
|
||||
set_color --bold red
|
||||
echo '[?] '
|
||||
end
|
||||
set_color normal
|
||||
'';
|
||||
};
|
||||
|
||||
interactiveShellInit = ''
|
||||
source ~/.config/fish/themes/modus-vivendi-tinted.fish
|
||||
|
||||
set hn (prompt_hostname)
|
||||
set fish_cursor_default block blink
|
||||
set fish_cursor_insert line blink
|
||||
|
|
@ -154,6 +175,30 @@
|
|||
set fish_vi_force_cursor 1
|
||||
fish_vi_key_bindings
|
||||
|
||||
# Custom Colorscheme
|
||||
set --universal fish_color_autosuggestion brblack # autosuggestions
|
||||
set --universal fish_color_command brwhite # commands
|
||||
set --universal fish_color_comment brblack # code comments
|
||||
set --universal fish_color_cwd brblack # current working directory in the default prompt
|
||||
set --universal fish_color_end brblack # process separators like ';' and '&'
|
||||
set --universal fish_color_error brwhite # highlight potential errors
|
||||
set --universal fish_color_escape brblack # highlight character escapes like '\n' and '\x70'
|
||||
set --universal fish_color_match yellow # highlight matching parenthesis
|
||||
set --universal fish_color_normal brwhite # default color
|
||||
set --universal fish_color_operator brblack # parameter expansion operators like '*' and '~'
|
||||
set --universal fish_color_param brmagenta # regular command parameters
|
||||
set --universal fish_color_quote bryellow # quoted blocks of text
|
||||
set --universal fish_color_redirection brwhite # IO redirections
|
||||
set --universal fish_color_search --bold --background=black --foreground=bryellow
|
||||
set --universal fish_color_search_match --background black # highlight history search matches and the selected pager item (must be a background)
|
||||
set --universal fish_pager_color_selected_background --background black --foreground brmagenta
|
||||
set --universal fish_pager_color_progress --foreground=brwhite --background=black
|
||||
set --universal fish_color_selection --background magenta # when selecting text (in vi visual mode)
|
||||
set --universal fish_color_cancel brblack # the '^C' indicator on a canceled command
|
||||
set --universal fish_color_host brwhite # current host system in some of fish default prompts
|
||||
set --universal fish_color_host_remote yellow #ayu:syntax.constant current host system in some of fish default prompts, if fish is running remotely (via ssh or similar)
|
||||
set --universal fish_color_user brwhite # current username in some of fish default prompts
|
||||
|
||||
fish_add_path /run/current-system/sw/bin
|
||||
fish_add_path /opt/homebrew/bin
|
||||
fish_add_path $ANDROID_HOME/emulator
|
||||
|
|
@ -177,6 +222,4 @@
|
|||
frc = "source ~/.config/fish/**/*.fish";
|
||||
};
|
||||
};
|
||||
|
||||
home.file.".config/fish/themes".source = ./themes;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue