arch-setup/files/Code - OSS/User/History/206c049d/Mz4w

42 lines
1.4 KiB
Text

#
# ~/.bashrc
#
# If not running interactively, don't do anything
# Bash Completion
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
source /usr/share/bash-completion/bash_completion
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
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'
echo "[ -f /usr/share/fzf/key-bindings.bash ] && source /usr/share/fzf/key-bindings.bash" >> ~/.bashrc
echo "[ -f /usr/share/fzf/completion.bash ] && source /usr/share/fzf/completion.bash" >> ~/.bashrc
[ -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
[ -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 {}'"
[ -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