# # /etc/bash.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return [[ $DISPLAY ]] && shopt -s checkwinsize PS1='[\u@\h \W]\$ ' case ${TERM} in Eterm*|alacritty*|aterm*|foot*|gnome*|konsole*|kterm*|putty*|rxvt*|tmux*|xterm*) PROMPT_COMMAND+=('printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"') ;; screen*) PROMPT_COMMAND+=('printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"') ;; esac if [[ -r /usr/share/bash-completion/bash_completion ]]; then . /usr/share/bash-completion/bash_completion fi # STARTUP export EDITOR=vim [ -z "${TMUX}" ] && tmux function cdl(){ cd $1 lsd -a } export cdl function mkcd(){ mkdir $1 cd $1 } export mkcd function shortcut(){ location=$(pwd) ln -s $location ~/Desktop/$1 } export shortcut function video_to_gif(){ ffmpeg -ss 30 -t 3 -i $1 \ -vf "fps=10,scale=320:-1:flags=lanczos,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse" \ -loop 0 $2 } export video_to_gif # MISC ALIASES alias wttr='curl wttr.in/Moundsville' alias mk='mkdir' alias bashrc='sudo vim /etc/bash.bashrc' alias vimrc='vim ~/.config/vim/vimrc' alias yt='yt-dlp' alias neo='bashcities -p invader_gvim --no-git' # FLATPAK COMMANDS alias freetube='flatpak run io.freetubeapp.FreeTube' # LAUNCHERS alias walk='/home/vim_girl/Public/walk_linux_amd64 --icons --preview' alias scim='/home/vim_girl/Public/scim/launch_scim.sh' # LSD ALIASES alias des='cd ~/Desktop;lsd' alias doc='cd ~/Documents;lsd' alias dow='cd ~/Downloads;lsd' alias mus='cd ~/Music;lsd' alias vid='cd ~/Videos;lsd' alias pic='cd ~/Pictures;lsd' alias pub='cd ~/Public;lsd' alias l='lsd' alias lt='lsd --tree'