✨ feat: Small fish improvements
This commit is contained in:
parent
63d6b7ed6f
commit
a48233b2ab
4 changed files with 28 additions and 0 deletions
5
.config/fish/conf.d/30-bat.fish
Normal file
5
.config/fish/conf.d/30-bat.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function cat --wraps cat
|
||||
bat $argv
|
||||
end
|
15
.config/fish/conf.d/30-fzf.fish
Normal file
15
.config/fish/conf.d/30-fzf.fish
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -gx FZF_DEFAULT_CMD 'rg --files --hidden --glob "!.git"'
|
||||
|
||||
set -gx FZF_DEFAULT_OPTS "\
|
||||
--margin=10%,5% \
|
||||
--border=sharp \
|
||||
--pointer=' ' \
|
||||
--marker=' ' \
|
||||
--prompt=' ' \
|
||||
--preview-label-pos='bottom' \
|
||||
--preview-window='border-sharp' \
|
||||
--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8 \
|
||||
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc \
|
||||
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
|
3
.config/fish/functions/$.fish
Normal file
3
.config/fish/functions/$.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
$argv
|
5
.config/fish/functions/fm.fish
Normal file
5
.config/fish/functions/fm.fish
Normal file
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
function fm --wraps=fzf -d "Use fzf as a simple file viewer"
|
||||
find . -type d | fzf --preview='eza --color=always -T {} | head -n 50'
|
||||
end
|
Loading…
Reference in a new issue