49 lines
1,014 B
Text
Executable file
49 lines
1,014 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
|
|
if type eza &>/dev/null; then
|
|
alias ls='eza --icons -g'
|
|
lst() { eza --no-icons --sort=time | head --lines=1; }
|
|
fi
|
|
|
|
alias ll='ls -lh'
|
|
alias lls='ls -lhrs modified'
|
|
alias la='ls -a'
|
|
alias lla='ls -lha'
|
|
alias l='ls'
|
|
|
|
# python
|
|
alias py='python3'
|
|
alias py3='python3'
|
|
alias pip='python3 -m pip'
|
|
alias ipy='ipython --TerminalInteractiveShell.editing_mode=vi --TerminalInteractiveShell.timeoutlen=0.2'
|
|
|
|
# vim
|
|
if type nvim &>/dev/null; then
|
|
alias vim='nvim'
|
|
fi
|
|
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; }
|