[Fish] fzf and bashs
This commit is contained in:
@@ -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
|
||||||
|
|||||||
3
.config/fish/functions/bashs.fish
Normal file
3
.config/fish/functions/bashs.fish
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function bashs --description 'raw bash command'
|
||||||
|
bash -c "$argv"
|
||||||
|
end
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user