# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return export VISUAL=nvim export EDITOR=nvim alias gx="nvim /home/$(whoami)/.config/guix/system.scm" alias gxsw="sudo guix system reconfigure /home/$(whoami)/.config/guix/system.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\]\$ "