Watch
1
0
Fork
You've already forked Zoe-Dotfiles
0
mirror of synced 2026-11-03 23:17:17 +00:00
Zoe-Dotfiles/bash/.bashrc
2026-10-06 08:47:31 +02:00

46 lines
1,015 B
Shell

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export VISUAL=nvim
export EDITOR=nvim
alias gx="sudoedit /etc/config.scm"
alias gxsw="sudo guix system reconfigure /etc/config.scm"
alias frep="grep -rnwe"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias ip="ip --color=auto"
alias woman='man'
alias poweroff="sudo shutdown"
alias :q="echo \"You're not in neovim dummy!\""
export MANPAGER='nvim +Man!'
# This is just for fun
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\]\$ "