From 0031fb402a2d0f9afb31ab2acb80a35297535e59 Mon Sep 17 00:00:00 2001
From: timoxa0 <tima012007@gmail.com>
Date: Wed, 20 Nov 2024 12:09:08 +0500
Subject: [PATCH] fish: config: Reformat config

---
 dot-config/fish/config.fish | 107 ++++++++++++++++++------------------
 1 file changed, 54 insertions(+), 53 deletions(-)

diff --git a/dot-config/fish/config.fish b/dot-config/fish/config.fish
index 6d4a78e..25e451d 100644
--- a/dot-config/fish/config.fish
+++ b/dot-config/fish/config.fish
@@ -11,20 +11,20 @@ function filesize
 end
 
 function _fetch
-  # if which pfetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
-  #   export PF_INFO="ascii title os host kernel uptime memory de"
-  #   #export PF_ASCII="arch"
-  #   pfetch
-  # end
-  if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
-    ufetch
-  end
+# 	if which pfetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
+# 		export PF_INFO="ascii title os host kernel uptime memory de"
+# 		#export PF_ASCII="arch"
+# 		pfetch
+# 	end
+	if which ufetch > /dev/null 2>&1 && [ "$VSCODE_INJECTION" != "1" ]
+		ufetch
+	end
 end
 
 function arm64cc-env
-    export ARCH=arm64
-    export hardeningDisable=all
-    export CROSS_COMPILE=aarch64-linux-gnu-
+	export ARCH=arm64
+	export hardeningDisable=all
+	export CROSS_COMPILE=aarch64-linux-gnu-
 end
 
 if which pyenv > /dev/null 2>&1
@@ -37,51 +37,52 @@ if [ "$TERM" = "foot" ] || [ "$TERM" = "xterm-kitty" ]
 end
 
 if status is-interactive
- 	bind \cl 'clear; _fetch; commandline -f repaint'
- 	bind \cb btop
- 	bind \cs 'source ~/.config/fish/config.fish'
+	bind \cl 'clear; _fetch; commandline -f repaint'
+	bind \cb btop
+	bind \cs 'source ~/.config/fish/config.fish'
+	
+	if which eza > /dev/null 2>&1
+		alias ls="eza --icons=auto"
+	else if which exa > /dev/null 2>&1
+		alias ls="exa --icons=auto"
+	end
 
- 	if which eza > /dev/null 2>&1
- 		alias ls="eza --icons=auto"
- 	else if which exa > /dev/null 2>&1
- 		alias ls="exa --icons=auto"
- 	end
+	if which bat > /dev/null 2>&1
+		alias cat="bat"
+	else if which batcat > /dev/null 2>&1
+		alias cat="batcat"
+	end
 
- 	if which bat > /dev/null 2>&1
- 		alias cat="bat"
- 	else if which batcat > /dev/null 2>&1
- 		alias cat="batcat"
- 	end
+	if which python > /dev/null 2>&1
+		alias py="python"
+	end
 
- 	if which python > /dev/null 2>&1
- 		alias py="python"
- 	end
-
-  if which distrobox-enter > /dev/null 2>&1
-    alias denter=distrobox-enter
-  end
-
-  if which nvim > /dev/null 2>&1
-    alias v="nvim"
-    alias edit="nvim"
-    alias e="nvim"
-    alias V="sudoedit"
-    export EDITOR=nvim
-  end
-
-  alias cdt="cd (mktemp -d)"
-  alias ":q"=exit
-
-  if which zoxide > /dev/null 2>&1
-    zoxide init --cmd cd fish | source
-  end
-  
- 	if [ "$reload" = "" ]
-    _fetch
- 	end
-  
-  export VIRTUAL_ENV_DISABLE_PROMPT=0
- 	set reload "done"
+	if which distrobox-enter > /dev/null 2>&1
+		alias denter=distrobox-enter
+	end
+	
+	if which nvim > /dev/null 2>&1
+		alias v="nvim"
+		alias edit="nvim"
+		alias e="nvim"
+		alias V="sudoedit"
+		export EDITOR=nvim
+	end
+	
+	alias cdt="cd (mktemp -d)"
+	alias ":q"=exit
+	
+	if which zoxide > /dev/null 2>&1
+		zoxide init --cmd cd fish | source
+	end
+	
+	if [ "$reload" = "" ]
+		_fetch
+	end
+	
+	export VIRTUAL_ENV_DISABLE_PROMPT=0
+	set reload "done"
+	return 0
 end
 
 fish_add_path /home/timoxa0/.spicetify