Files
dotfiles/.bashrc
T

43 lines
1.1 KiB
Bash
Raw Normal View History

2023-05-30 18:32:13 +02:00
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Complete commands when using sudo and man
complete -cf sudo
complete -c man
# Aliases
alias cinnamon-restart='nohup cinnamon --replace > /dev/null 2>&1 &'
2024-02-25 19:09:42 +01:00
alias clean-aurutils-cache='find ~/.cache/aurutils/sync -type d -name .git -execdir git clean -xi \;'
2023-05-30 18:32:13 +02:00
alias config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
alias ls='ls -v --color=auto'
alias mutt='pushd ~/Downloads > /dev/null; mutt; popd > /dev/null'
2024-02-25 19:09:42 +01:00
alias rm='rm -I'
2023-05-30 18:32:13 +02:00
alias sort='sort -n'
alias sudo='sudo '
2024-03-25 22:35:54 +01:00
alias trayer='trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --width 7 --transparent true --tint 0x1f2022 --height 18 --monitor 0'
2023-05-30 18:32:13 +02:00
alias vi='vim'
2024-03-17 17:53:38 +01:00
if [ "$TERM" == "xterm-kitty" ]; then
2024-03-23 11:58:46 +01:00
alias ssh='kitten ssh'
2024-03-17 17:53:38 +01:00
fi
2023-06-01 18:32:09 +02:00
2023-05-30 18:32:13 +02:00
# PS1
PS1='[\u@\h \W]\$ '
if [ ! -d ~/.cache/mutt ]; then
mkdir ~/.cache/mutt
fi
2024-01-05 13:11:47 +01:00
eval "$(beet completion)"
export EDITOR=vim
2023-05-30 18:32:13 +02:00
export SUDO_EDITOR=rvim
2024-03-17 17:53:38 +01:00
if [ "$TERM" == "xterm-kitty" ]; then
fortune /usr/share/fortune/startrek /usr/share/fortune/anarchism /usr/share/fortune/asoiaf
fi