radix/files/bash/bashrc

48 lines
1.7 KiB
Bash
Raw Normal View History

2023-08-06 02:30:22 +00:00
alias df="df -h"
alias diff="diff --color=auto"
alias grep="grep --color=auto"
alias ip="ip --color=auto"
alias ls="ls --color=auto --group-directories-first --classify -hlv"
alias ln="ln -sfn"
alias info="info --init-file $XDG_CONFIG_HOME/infokeys"
alias m="yt-dlp --prefer-free-formats --extract-audio"
alias v="yt-dlp --prefer-free-formats"
alias present="xrandr --output LVDS-1 --mode 1366x768 --scale 1x1 --output VGA-1 --same-as LVDS-1 --mode 1920x1080 --scale 0.711x0.711"
alias lf="$XDG_CONFIG_HOME/lf/lfrun"
alias gpg="gpg --homedir $XDG_DATA_HOME/gnupg"
alias radio="https://radio.vern.cc"
alias ':e'="kak"
alias ':q'="exit"
[ -f /etc/bashrc ] && source /etc/bashrc
export PATH="$PATH:$(du $HOME/.local/bin/ \
| cut -f2 \
| tr '\n' ':' \
| sed 's/:*$//')"
export SHELL
if [[ $- != *i* ]]; then
[[ -n "$SSH_CLIENT" ]] && source /etc/profile
return
fi
PS1='${GUIX_ENVIRONMENT:+[env ${GUIX_ENVIRONMENT}]\n}\u at \W $(git branch &>/dev/null && git branch 2>/dev/null | sed -n "s/* \(.*\)/on \1 /p")> '
[ "$TERM" = "linux" ] && {\
echo -en "\e]P0"'070707'
echo -en "\e]P1"'df6760'
echo -en "\e]P2"'8be760'
echo -en "\e]P3"'ffd17a'
echo -en "\e]P4"'9688d9'
echo -en "\e]P5"'86adff'
echo -en "\e]P6"'86adff'
echo -en "\e]P7"'f1f1f1'
echo -en "\e]P8"'070707'
echo -en "\e]P9"'df6760'
echo -en "\e]PA"'8be760'
echo -en "\e]PB"'ffd17a'
echo -en "\e]PC"'9688d9'
echo -en "\e]PD"'86adff'
echo -en "\e]PE"'86adff'
echo -en "\e]PF"'f1f1f1'
}
trap 'printf "\033]0;%s\007" "${BASH_COMMAND//[^[:print:]]/}"' DEBUG