feat(fish): updated config, added alias
This commit is contained in:
@@ -25,7 +25,7 @@ if status is-interactive
|
||||
command -qv tree && alias dtree "tree -L 3 -a -d -I '.git' --charset X "
|
||||
|
||||
command -qv wl-copy && alias cwd "wl-copy \$(pwd)"
|
||||
command -qv wl-copy && alias copy-cmd "wl-copy \$(echo \$history[1])"
|
||||
command -qv wl-copy && alias cc "wl-copy \$(echo \$history[1])"
|
||||
|
||||
command -qv fabric-ai && alias ai "fabric-ai -p \$(fabric-ai -l | fzf)"
|
||||
command -qv xdg-open && alias o "xdg-open"
|
||||
@@ -49,6 +49,10 @@ if status is-interactive
|
||||
|
||||
command -qv jj && alias rev "jj log -G -T 'commit_id.short(8)'"
|
||||
|
||||
if command -qv shred
|
||||
alias nuke "shred -u -n 1"
|
||||
end
|
||||
|
||||
if command -qv wt;
|
||||
alias wtc "wt switch --create --execute=$EDITOR"
|
||||
alias wts "wt switch"
|
||||
@@ -84,6 +88,7 @@ if status is-interactive
|
||||
|
||||
if test -x /usr/bin/fzf;
|
||||
/usr/bin/fzf --fish | source
|
||||
alias zk="nvim \$(fzf --walker=file --walker-root=/home/sjb/Documents/nca-notes/ --preview 'bat --color=always -n --line-range :500 {}')"
|
||||
#set -gx FZF_CTRL_T_OPTS "--preview 'bat --color=always -n --line-range :500 {}'"
|
||||
#set -gx FZF_ALT_C_OPTS "--preview 'eza --icons=always --color=always {} | head -200'"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user