Konfiguration Fish zugefügt
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
source /usr/share/cachyos-fish-config/cachyos-config.fish
|
||||
|
||||
fish_add_path ~/.local/bin
|
||||
|
||||
###### Aliase ######
|
||||
# exa
|
||||
alias ls='exa --color=always --group-directories-first --icons'
|
||||
alias la='exa -a --color=always --group-directories-first --icons'
|
||||
alias ll='exa -al --color=always --group-directories-first --icons'
|
||||
|
||||
# grep with colors
|
||||
alias grep='grep --color=auto'
|
||||
|
||||
# confirmations
|
||||
alias mv='mv -i'
|
||||
alias cp='cp -i'
|
||||
#alias rm='rm -i'
|
||||
alias ln='ln -i'
|
||||
|
||||
# mkdir create parents
|
||||
alias mkdir='mkdir -pv'
|
||||
|
||||
# Doom Emacs
|
||||
alias doomdoc='~/.config/emacs/bin/doom doctor'
|
||||
alias doomsync='~/.config/emacs/bin/doom sync'
|
||||
alias doomup='~/.config/emacs/bin/doom upgrade'
|
||||
|
||||
# Sonstiges
|
||||
alias c='~/.local/bin/cht.sh'
|
||||
alias cb='~/.local/bin/search_cliphist.sh'
|
||||
alias ip='ip -color'
|
||||
alias m='unimatrix -s 90 -l k'
|
||||
alias v='vim'
|
||||
alias y='yazi'
|
||||
alias yu='ya pkg upgrade'
|
||||
|
||||
# pacman and yay
|
||||
alias pacup='sudo pacman -Syu'
|
||||
alias yayup='paru -Sua'
|
||||
#alias yayup='yay -Sua --noconfirm'
|
||||
alias cleanup='sudo pacman -Rns $(pacman -Qtdq)'
|
||||
|
||||
###### Set up fzf key bindings and fuzzy completion ######
|
||||
# CTRL-Y to copy the command into clipboard using pbcopy
|
||||
export FZF_CTRL_R_OPTS="
|
||||
--bind 'ctrl-y:execute-silent(echo -n {2..} | pbcopy)+abort'
|
||||
--color header:italic
|
||||
--header 'Press CTRL-Y to copy command into clipboard'"
|
||||
|
||||
# Preview file content using bat (https://github.com/sharkdp/bat)
|
||||
export FZF_CTRL_T_OPTS="
|
||||
--walker-skip .git,node_modules,target
|
||||
--preview 'bat -n --color=always {}'
|
||||
--bind 'ctrl-/:change-preview-window(down|hidden|)'"
|
||||
|
||||
# Print tree structure in the preview window
|
||||
export FZF_ALT_C_OPTS="
|
||||
--walker-skip .git,node_modules,target
|
||||
--preview 'tree -C {}'"
|
||||
|
||||
# FZF options
|
||||
export FZF_DEFAULT_OPTS="
|
||||
--color=fg:-1,bg:-1,hl:#c678dd,fg+:#ffffff,bg+:#4b5263,hl+:#d858fe
|
||||
--color=info:#98c379,prompt:#61afef,pointer:#be5046,marker:#e5c07b,spinner:#61afef,header:#61afef
|
||||
"
|
||||
# Set up fzf key bindings
|
||||
fzf --fish | source
|
||||
|
||||
###### Startup ######
|
||||
starship init fish | source
|
||||
Reference in New Issue
Block a user