36 lines
566 B
Bash
36 lines
566 B
Bash
# Changing/making/removing directory
|
|
setopt auto_pushd
|
|
setopt pushd_ignore_dups
|
|
setopt pushdminus
|
|
|
|
# Command Line Foo
|
|
alias clf='clf --color'
|
|
|
|
# The Fuck
|
|
TF_ALIAS=fuck alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
|
|
|
|
# PClear
|
|
pclear () {
|
|
clear
|
|
printf '\033[3J'
|
|
}
|
|
|
|
# Termbin
|
|
alias tb='nc termbin.com 9999'
|
|
|
|
# Make Dir and enter it
|
|
mkcd() {
|
|
mkdir $1 &>/dev/null
|
|
[ -e $1 ] && cd $1
|
|
}
|
|
|
|
# Listing
|
|
alias la='ls -lah'
|
|
alias ls='ls -lah'
|
|
|
|
# Interactive
|
|
alias rm='rm -i'
|
|
alias cp='cp -i'
|
|
alias mv='mv -i'
|
|
|
|
alias psgrep='ps aux | grep -v grep | grep'
|