36 lines
1 KiB
Text
36 lines
1 KiB
Text
#
|
||
# ~/.bashrc
|
||
#
|
||
|
||
# Wenn nicht interaktiv, abbrechen
|
||
[[ $- != *i* ]] && return
|
||
|
||
# Bash Completion
|
||
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
|
||
source /usr/share/bash-completion/bash_completion
|
||
|
||
# Aliase
|
||
alias ls='ls --color=auto'
|
||
alias grep='grep --color=auto'
|
||
alias ff='fastfetch'
|
||
alias c='clear'
|
||
alias wttr='curl wttr.in/dresden'
|
||
alias m='cmatrix'
|
||
alias pipes='pipes.sh'
|
||
alias b='btop'
|
||
alias mensa='/home/denode/go/motd.sh'
|
||
alias q='exit'
|
||
alias nv='nvim'
|
||
alias ll='yazi'
|
||
|
||
# Schöner Prompt
|
||
PS1='\n\[\e[38;5;69m\]⮞ \[\e[1;38;5;75m\]\u\[\e[0m\]@\[\e[38;5;69m\]\h \[\e[38;5;25m\]\w\n\[\e[38;5;33m\]❯❯ \[\e[0m\]'
|
||
|
||
|
||
# FZF Integration
|
||
[ -f /usr/share/fzf/key-bindings.bash ] && source /usr/share/fzf/key-bindings.bash
|
||
[ -f /usr/share/fzf/completion.bash ] && source /usr/share/fzf/completion.bash
|
||
|
||
export FZF_DEFAULT_COMMAND='fd --type f'
|
||
export FZF_CTRL_T_OPTS="--preview 'bat --style=numbers --color=always {} || cat {}'"
|
||
export FZF_ALT_C_OPTS="--preview 'exa --tree --level=2 --color=always {}'"
|