Last active
September 19, 2019 10:17
-
-
Save YoloClin/f4c82a6e693000a2da20e8029a49656c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# When opening interactive ssh session, automatically open tmux | |
if [[ -z "$TMUX" ]] && [ "$SSH_CONNECTION" != "" ]; then | |
tmux new -A -t ssh_tmux && exit | |
fi | |
if [[ $- != *i* ]] ; then | |
# Shell is non-interactive. Be done now! | |
return | |
fi | |
alias df='df -l -T -x tmpfs -x devtmpfs -x overlay -h ' | |
alias diff="colordiff" | |
alias grep="grep -n --exclude=\*~ --exclude=\#\* --exclude-dir=/root/.shell_logs --exclude-dir=/home/clin/.shell_logs --exclude-dir=~.shell_logs " | |
alias recursively_delete_folders="find -type d -empty -delete" | |
alias recursively_get_largest_files="find . -type f -printf '%s %p\n' | sort -nr | tac" | |
alias mplayer="DISPLAY=:0 mplayer" | |
stty intr ^G # Formerly C-z, Stop current action | |
stty susp ^Z # Formerly C-z, Pause process | |
stty erase undef # Formerly C-?, Despite its name, seems to be undo | |
stty kill undef # Formerly C-u, The left hand version of C-k | |
stty werase undef # Formerly C-w, The left hand version of C-k | |
stty eof undef # Formerly C-d, When terminal is empty, close it | |
stty lnext undef # Unsure, previously ^V | |
stty rprnt undef # Unsure, previously ^R, probably overbound by gnome-terminal | |
stty discard undef # Unsure, previously ^O, Seems to be return | |
stty start undef # Unsure, previously ^Q | |
stty stop undef # Unsure, previously ^S, Applies scrolllock in a tty |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment