aboutsummaryrefslogtreecommitdiff
path: root/fish/functions
diff options
context:
space:
mode:
authorGravatar pinoinha <pinoinha@disroot.org> 2024-01-31 15:49:43 +0000
committerGravatar pinoinha <pinoinha@disroot.org> 2024-01-31 15:49:43 +0000
commitf2ea5549937a946388c48e4926776500e5eddbd3 (patch)
treeea3c3f07c178462232b5b75ce3f8a3e4acd4065b /fish/functions
parentcd46d7833a0fc34f512ed810dacb69aa93bbbc91 (diff)
configs do tmux e do fish
Diffstat (limited to 'fish/functions')
-rw-r--r--fish/functions/bat.fish3
-rw-r--r--fish/functions/fish_greeting.fish2
-rw-r--r--fish/functions/fish_prompt.fish3
-rw-r--r--fish/functions/fish_right_prompt.fish3
-rw-r--r--fish/functions/fish_user_key_bindings.fish3
-rw-r--r--fish/functions/luarocks_path.fish5
-rw-r--r--fish/functions/yda.fish7
7 files changed, 26 insertions, 0 deletions
diff --git a/fish/functions/bat.fish b/fish/functions/bat.fish
new file mode 100644
index 0000000..4102d0e
--- /dev/null
+++ b/fish/functions/bat.fish
@@ -0,0 +1,3 @@
+function bat
+ /usr/bin/bat --style header,rule,numbers --force-colorization $argv
+end
diff --git a/fish/functions/fish_greeting.fish b/fish/functions/fish_greeting.fish
new file mode 100644
index 0000000..018520b
--- /dev/null
+++ b/fish/functions/fish_greeting.fish
@@ -0,0 +1,2 @@
+function fish_greeting
+end
diff --git a/fish/functions/fish_prompt.fish b/fish/functions/fish_prompt.fish
new file mode 100644
index 0000000..444d8b7
--- /dev/null
+++ b/fish/functions/fish_prompt.fish
@@ -0,0 +1,3 @@
+function fish_prompt -d "Manage fish prompt"
+ echo (set_color blue)(id -nu)(set_color red)'@'(set_color magenta)(prompt_hostname) (set_color green)(prompt_pwd)(set_color normal)(set_color yellow) '$ '(set_color normal)
+end
diff --git a/fish/functions/fish_right_prompt.fish b/fish/functions/fish_right_prompt.fish
new file mode 100644
index 0000000..2dfab0e
--- /dev/null
+++ b/fish/functions/fish_right_prompt.fish
@@ -0,0 +1,3 @@
+function fish_right_prompt
+ echo (set_color red)(fish_git_prompt)(set_color normal)
+end
diff --git a/fish/functions/fish_user_key_bindings.fish b/fish/functions/fish_user_key_bindings.fish
new file mode 100644
index 0000000..ff0d9f3
--- /dev/null
+++ b/fish/functions/fish_user_key_bindings.fish
@@ -0,0 +1,3 @@
+function fish_user_key_bindings
+ fzf_key_bindings
+end
diff --git a/fish/functions/luarocks_path.fish b/fish/functions/luarocks_path.fish
new file mode 100644
index 0000000..932a3f0
--- /dev/null
+++ b/fish/functions/luarocks_path.fish
@@ -0,0 +1,5 @@
+function luarocks_path
+ for i in (luarocks path | awk '{sub(/PATH=/, "PATH ", $2); print "set -gx "$2}')
+ eval $i
+ end
+end
diff --git a/fish/functions/yda.fish b/fish/functions/yda.fish
new file mode 100644
index 0000000..1d9881a
--- /dev/null
+++ b/fish/functions/yda.fish
@@ -0,0 +1,7 @@
+function yda
+ yt-dlp -4 -x --audio-format flac \
+ -o '~/musica/%(title)s.%(ext)s' \
+ --external-downloader aria2c \
+ --external-downloader-args '-c -j 3 -x 3 -s 3 -k 1M' \
+ $argv
+end