aboutsummaryrefslogtreecommitdiff
path: root/mirenn/home/files/dotfiles/.config/fish
diff options
context:
space:
mode:
Diffstat (limited to 'mirenn/home/files/dotfiles/.config/fish')
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/conf.d/interactive.fish5
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/conf.d/theme.fish38
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/functions/cat.fish3
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish7
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/functions/rm.fish3
-rw-r--r--mirenn/home/files/dotfiles/.config/fish/functions/shrekfetch.fish3
6 files changed, 59 insertions, 0 deletions
diff --git a/mirenn/home/files/dotfiles/.config/fish/conf.d/interactive.fish b/mirenn/home/files/dotfiles/.config/fish/conf.d/interactive.fish
new file mode 100644
index 0000000..8f82c33
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/conf.d/interactive.fish
@@ -0,0 +1,5 @@
+if status is-interactive
+ fish_add_path -p ~/.cargo/bin ~/.ghcup/bin
+ set -g fish_greeting
+ zoxide init fish | source
+end
diff --git a/mirenn/home/files/dotfiles/.config/fish/conf.d/theme.fish b/mirenn/home/files/dotfiles/.config/fish/conf.d/theme.fish
new file mode 100644
index 0000000..9b5e536
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/conf.d/theme.fish
@@ -0,0 +1,38 @@
+set --global fish_color_autosuggestion brblack
+set --global fish_color_cancel --reverse
+set --global fish_color_command blue
+set --global fish_color_comment red
+set --global fish_color_cwd green
+set --global fish_color_cwd_root red
+set --global fish_color_end green
+set --global fish_color_error brred
+set --global fish_color_escape brcyan
+set --global fish_color_history_current --bold
+set --global fish_color_host normal
+set --global fish_color_host_remote yellow
+set --global fish_color_keyword normal
+set --global fish_color_match --background=brblue
+set --global fish_color_normal normal
+set --global fish_color_operator brcyan
+set --global fish_color_option cyan
+set --global fish_color_param cyan
+set --global fish_color_quote yellow
+set --global fish_color_redirection cyan --bold
+set --global fish_color_search_match bryellow --background=brblack
+set --global fish_color_selection white --bold --background=brblack
+set --global fish_color_status red
+set --global fish_color_user brgreen
+set --global fish_color_valid_path --underline
+set --global fish_pager_color_background
+set --global fish_pager_color_completion normal
+set --global fish_pager_color_description yellow --italics
+set --global fish_pager_color_prefix normal --bold --underline
+set --global fish_pager_color_progress brwhite --background=cyan
+set --global fish_pager_color_secondary_background
+set --global fish_pager_color_secondary_completion
+set --global fish_pager_color_secondary_description
+set --global fish_pager_color_secondary_prefix
+set --global fish_pager_color_selected_background --reverse
+set --global fish_pager_color_selected_completion
+set --global fish_pager_color_selected_description
+set --global fish_pager_color_selected_prefix
diff --git a/mirenn/home/files/dotfiles/.config/fish/functions/cat.fish b/mirenn/home/files/dotfiles/.config/fish/functions/cat.fish
new file mode 100644
index 0000000..73b5541
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/functions/cat.fish
@@ -0,0 +1,3 @@
+function cat --wraps=bat --description 'alias cat bat'
+ bat $argv
+end
diff --git a/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish b/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..e0df61e
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/functions/fish_prompt.fish
@@ -0,0 +1,7 @@
+function fish_prompt
+ printf (if fish_is_root_user
+ echo '%s%s%s # '
+ else
+ echo '%s%s%s $ '
+ end) (set_color $fish_color_cwd) (prompt_pwd --full-length-dirs 5) (set_color normal)
+end
diff --git a/mirenn/home/files/dotfiles/.config/fish/functions/rm.fish b/mirenn/home/files/dotfiles/.config/fish/functions/rm.fish
new file mode 100644
index 0000000..7d8fe20
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/functions/rm.fish
@@ -0,0 +1,3 @@
+function rm --wraps=trash --description 'alias rm trash'
+ trash $argv
+end
diff --git a/mirenn/home/files/dotfiles/.config/fish/functions/shrekfetch.fish b/mirenn/home/files/dotfiles/.config/fish/functions/shrekfetch.fish
new file mode 100644
index 0000000..191c64f
--- /dev/null
+++ b/mirenn/home/files/dotfiles/.config/fish/functions/shrekfetch.fish
@@ -0,0 +1,3 @@
+function shrekfetch --wraps='fastfetch -l ~/Pictures/shrek.jpg --logo-type sixel --logo-width 30' --description 'alias shrekfetch fastfetch -l ~/Pictures/shrek.jpg --logo-type sixel --logo-width 30'
+ fastfetch -l ~/Pictures/shrek.jpg --logo-type sixel --logo-width 30 $argv
+end