[Fish] fzf and bashs

This commit is contained in:
coja
2026-04-10 23:41:08 +02:00
parent 9a154c71ec
commit 581001db0b
4 changed files with 9 additions and 5 deletions

View File

@@ -27,12 +27,13 @@ alias fzf="fzf --multi --preview 'bat --style=numbers --color=always {}' | xargs
alias grep="grep --color=auto" alias grep="grep --color=auto"
# Git # Git
alias gs="git status" alias gs="git status --short"
alias gca="git add -p . && git commit" alias gca="git add -p . && git commit"
alias gd="git diff --word-diff" alias gd="git diff --word-diff"
alias gl="git log --graph --show-signature" alias gl="git log --graph --show-signature"
alias glog="git log --all --decorate --oneline --color --graph" alias gla="git log --all --decorate --oneline --graph"
alias gla="git log --all --decorate --oneline" alias gls="serie"
alias gm="git merge"
alias gm="git merge" alias gm="git merge"
# List Directory # List Directory

View File

@@ -0,0 +1,3 @@
function bashs --description 'raw bash command'
bash -c "$argv"
end

View File

@@ -1,3 +1,3 @@
function sshf --description 'fzf select for ssh hosts' function sshf --description 'fzf select for ssh hosts'
ssh $(grep Host -w ~/.ssh/config | awk '{print $2}' | fzf --preview="echo" --preview-border="none") ssh $(grep Host -w ~/.ssh/config | awk '{print $2}' | bashs "fzf --multi")
end end

View File

@@ -1,3 +1,3 @@
function tuis --description 'fzf select tui' function tuis --description 'fzf select tui'
eval (string split "\n" (cat $HOME/.dotfiles/tuis.txt) | fzf) eval (string split "\n" (cat $HOME/.dots/tuis.txt) | bashs "fzf --multi")
end end