+ Enable vim copy selection mode + Add various copy actions for middle, double, triple-click, etc. + Add instructions to README to install required tmux plugins
		
			
				
	
	
		
			49 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			49 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			Bash
		
	
	
	
	
	
# Aliases to use the correct python version
 | 
						|
alias python3='python3.9'
 | 
						|
alias pip3='python3.9 -m pip'
 | 
						|
 | 
						|
# Alias to restart plasmashell for Kubuntu Plasma session
 | 
						|
alias kapp-plasmashell='sudo pkill plasmashell && plasmashell --replace &> /dev/null &'
 | 
						|
# Alias to clear swap
 | 
						|
alias kapp-swap='sudo swapoff -a && sudo swapon -a'
 | 
						|
# Alias to initialize github user
 | 
						|
alias kapp-git='git config --global user.name "Shaun Reed" && git config --global user.email "shaunrd0@gmail.com"'
 | 
						|
# Alias to update and upgrade with useful flags set
 | 
						|
alias kapp-update='sudo apt update -y && sudo apt upgrade -y && sudo apt upgrade --fix-broken --fix-missing --auto-remove'
 | 
						|
 | 
						|
# Alias / export customizations
 | 
						|
 | 
						|
# colored GCC warnings and errors
 | 
						|
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
 | 
						|
 | 
						|
# some more ls aliases
 | 
						|
alias ll='ls -alF'
 | 
						|
alias la='ls -A'
 | 
						|
alias l='ls -CF'
 | 
						|
 | 
						|
# Add an "alert" alias for long running commands.  Use like so:
 | 
						|
#   sleep 10; alert
 | 
						|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
 | 
						|
export EDITOR="vim"
 | 
						|
export VISUAL="vim"
 | 
						|
export LS_COLORS="di=1;34:ln=31;47:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43"
 | 
						|
export PATH=$PATH:/opt/:/home/kapper/.local/bin/:/home/kapper/.local/bin/i3scripts
 | 
						|
 | 
						|
# Example path for autocompletion using libclang-9-dev package, obtained by the following command
 | 
						|
# find /usr/ -name libclang.so.1 2>/dev/null
 | 
						|
export LIBCLANG="/usr/lib/llvm-10/lib/libclang.so.1"
 | 
						|
 | 
						|
# Source a top-secret alias file
 | 
						|
if [ -f ~/.bash_secrets ]; then
 | 
						|
  . ~/.bash_secrets
 | 
						|
fi
 | 
						|
 | 
						|
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
 | 
						|
  exec tmux
 | 
						|
fi
 | 
						|
 | 
						|
# Set the default terminal to use konsole, with Kapper profile
 | 
						|
# + Execute tmux on start
 | 
						|
export TERMINAL='konsole --profile Kapper -e tmux'
 | 
						|
 |