]> Freerunner's - dotfiles.git/commitdiff
fish: minor updates
authorAndre Ramnitz <tux.rising@gmail.com>
Mon, 12 Aug 2024 16:11:10 +0000 (18:11 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Mon, 26 Aug 2024 13:52:01 +0000 (15:52 +0200)
config/fish/config.fish
config/fish/functions/eza-aliases.fish
config/fish/functions/lsblk.fish
config/fish/functions/lsblkp.fish [new file with mode: 0644]

index 64dc20b903dce4da318b3d72a688b612e868c232..61b04f525453007865fdc911be5995bd8ba01ce5 100644 (file)
@@ -12,3 +12,17 @@ if test "$DISPLAY" = "" -a "$WAYLAND_DISPLAY" = "" -a "$XDG_VTNR" = 1
     tbsm
 end
 
+# support jumping between prompts with foot terminal
+function mark_prompt_start --on-event fish_prompt
+    echo -en "\e]133;A\e\\"
+end
+
+# enable pipe-command-output with foot terminal
+function foot_cmd_start --on-event fish_preexec
+  echo -en "\e]133;C\e\\"
+end
+
+function foot_cmd_end --on-event fish_postexec
+  echo -en "\e]133;D\e\\"
+end
+
index bd8f2a22d9783fe9695b6c0b8661fe4b92f69e43..5731f7c5330fee5fe9530291be9facd7ddcfab1c 100644 (file)
@@ -12,9 +12,9 @@ end
 function ls --wraps='eza' --description='alias eza'
     switch $(tty)
         case /dev/tty**
-            EZA_GRID_ROWS=13 eza -w 220 --group --group-directories-first --icons $argv
+            EZA_GRID_ROWS=13 eza -w 155 --group-directories-first --icons $argv
         case /dev/pts/**
-            EZA_GRID_ROWS=26 eza -w 55 --group --group-directories-first --icons $argv
+            EZA_GRID_ROWS=26 eza -w 155 --group-directories-first --icons $argv
     end
 end
 
index 15448349c4661554dcfbc3114e1dd990c3465b5a..fcdbbdaca008b046dd9807082b2eb6cc8d588e88 100644 (file)
@@ -1,4 +1,5 @@
-function lsblk --description 'alias lsblk=lsblk -o name,size,partuuid,fstype,mountpoints,label'
+function lsblk --description 'alias lsblk=lsblk -o name,size,uuid,fstype,mountpoints,label'
  command lsblk -o name,size,partuuid,fstype,mountpoints,label $argv
         
 end
+
diff --git a/config/fish/functions/lsblkp.fish b/config/fish/functions/lsblkp.fish
new file mode 100644 (file)
index 0000000..ade599f
--- /dev/null
@@ -0,0 +1,5 @@
+function lsblkp --description 'alias lsblkp=lsblk -o name,size,partuuid,fstype,mountpoints,label'
+ command lsblk -o name,size,partuuid,fstype,mountpoints,label $argv
+        
+end
+