44 lines
		
	
	
	
		
			940 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
	
		
			940 B
		
	
	
	
		
			Text
		
	
	
		
			Executable file
		
	
	
	
	
# just for security and for fun because i have typing -rf every time
 | 
						|
alias cp='cp -v'
 | 
						|
alias mv='mv -v'
 | 
						|
alias rm='rm -v'
 | 
						|
alias ff='fasttyper'
 | 
						|
 | 
						|
# exit
 | 
						|
alias e='exit'
 | 
						|
 | 
						|
# program shortcuts
 | 
						|
alias grep='grep --color=auto'
 | 
						|
 | 
						|
# ls
 | 
						|
alias ls='exa --icons -g'
 | 
						|
alias ll='ls -lh'
 | 
						|
alias lls='ls -lhrs modified'
 | 
						|
alias la='ls -a'
 | 
						|
alias lla='ls -lha'
 | 
						|
alias l='ls'
 | 
						|
lst() { exa --no-icons --sort=time | head --lines=1; }
 | 
						|
 | 
						|
# python
 | 
						|
alias py='python3'
 | 
						|
alias py3='python3'
 | 
						|
alias pip='python3 -m pip'
 | 
						|
alias ipy='ipython --TerminalInteractiveShell.editing_mode=vi --TerminalInteractiveShell.timeoutlen=0.2'
 | 
						|
 | 
						|
# vim
 | 
						|
alias vim='nvim'
 | 
						|
alias v='vim'
 | 
						|
alias vv='vifm'
 | 
						|
 | 
						|
# kitty
 | 
						|
if [ "$TERM" = "xterm-kitty" ]; then
 | 
						|
	alias kssh='kitty +kitten ssh'
 | 
						|
fi
 | 
						|
 | 
						|
# copy piped to clipboard
 | 
						|
cpy() { py -c "import sys, pyperclip; pyperclip.copy(sys.stdin.read().strip())"; }
 | 
						|
 | 
						|
# history
 | 
						|
hlst() { history | tail --lines=1 | cut -d " " -f 4-; }
 | 
						|
lstc() { lst | cpy; }
 | 
						|
hlstc() { hlst | cpy; }
 |