Watch
1
0
Fork
You've already forked Zoe-Dotfiles
0
mirror of synced 2026-11-03 22:17:19 +00:00
Zoe-Dotfiles/bash/.bashrc
2026-09-28 12:46:08 +02:00

52 lines
1.3 KiB
Shell

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export VISUAL=nvim
export EDITOR=nvim
alias xin="doas xbps-install"
alias xor="xbps-query -Rs"
alias xrm="doas xbps-remove -R"
alias xclean="doas xbps-remove -ROo"
alias frep="grep -rnwe"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias ip="ip --color=auto"
alias woman='man'
alias sudo='doas'
alias ":q"="echo \"You're not in neovim dummy!\""
alias fanMax="su -c \"echo level 7 > /proc/acpi/ibm/fan\""
alias fanMid="su -c \"echo level 4 > /proc/acpi/ibm/fan\""
alias fanAuto="su -c \"echo level auto > /proc/acpi/ibm/fan\""
export MANPAGER='nvim +Man!'
# This is just for fun
alias fih="fastfetch --logo openbsd --config /home/zink/.config/fastfetch/fih1.jsonc"
eval "$(fzf --bash)"
# Emacs vterm
vterm_printf() {
if [ -n "$TMUX" ] \
&& { [ "${TERM%%-*}" = "tmux" ] \
|| [ "${TERM%%-*}" = "screen" ]; }; then
# Tell tmux to pass the escape sequences through
printf "\ePtmux;\e\e]%s\007\e\\" "$1"
elif [ "${TERM%%-*}" = "screen" ]; then
# GNU screen (screen, screen-256color, screen-256color-bce)
printf "\eP\e]%s\007\e\\" "$1"
else
printf "\e]%s\e\\" "$1"
fi
}
export PS1="\[\e[1;35m\]\u\[\e[0m\]@\[\e[1;36m\]\h\[\e[1;32m\]\w\[\e[0m\]\$ "