Fish
This commit is contained in:
@@ -1,17 +1,12 @@
|
||||
function fish_greeting
|
||||
fastfetch
|
||||
echo -e "\e[34m \e[39m""$(hyprctl splash)"
|
||||
end
|
||||
set -g theme_display_git_default_branch yes
|
||||
set -g theme_display_git_ahead_verbose yes
|
||||
set -g theme_display_git_dirty_verbose yes
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_color_scheme dark
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_show_exit_status yes
|
||||
|
||||
if status is-interactive
|
||||
alias ls lsd
|
||||
alias vim nvim
|
||||
set -g theme_display_git_default_branch yes
|
||||
set -g theme_display_git_ahead_verbose yes
|
||||
set -g theme_display_git_dirty_verbose yes
|
||||
set -g theme_nerd_fonts yes
|
||||
set -g theme_color_scheme dark
|
||||
set -g theme_display_user ssh
|
||||
set -g theme_show_exit_status yes
|
||||
end
|
||||
###
|
||||
|
||||
12
.config/fish/functions/fish_command_not_found.fish
Normal file
12
.config/fish/functions/fish_command_not_found.fish
Normal file
@@ -0,0 +1,12 @@
|
||||
function fish_command_not_found
|
||||
set cmd $argv
|
||||
|
||||
if set pkgs (pkgfile -bv -- "$cmd" 2>/dev/null)
|
||||
printf '%s may be found in the following packages:\n' "$cmd"
|
||||
for pkg in $pkgs
|
||||
printf ' %s\n' "$pkg"
|
||||
end
|
||||
else
|
||||
__fish_default_command_not_found_handler "$cmd"
|
||||
end
|
||||
end
|
||||
14
.config/fish/functions/fish_greeting.fish
Normal file
14
.config/fish/functions/fish_greeting.fish
Normal file
@@ -0,0 +1,14 @@
|
||||
function fish_greeting
|
||||
if test (string match -r 'kitty|ghostty' $TERM)
|
||||
omf t bobthefish
|
||||
fastfetch --logo-type kitty -l ~/.config/fastfetch/logo.png
|
||||
if test $HYPRLAND_INSTANCE_SIGNATURE; echo -e "\e[34m \e[39m""$(hyprctl splash)"; end
|
||||
else
|
||||
if test $TERM = 'linux'
|
||||
omf t ''
|
||||
fastfetch -c none
|
||||
else
|
||||
fastfetch
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user