Created
January 15, 2016 17:31
-
-
Save sayz/26940942707fc086e645 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| alias up1="cd .." | |
| # edit multiple files split horizontally or vertically | |
| alias e="vim -o " | |
| alias E="vim -O " | |
| # directory-size-date (remove the echo/blank line if you desire) | |
| alias dsd="echo;ls -Fla" | |
| alias dsdm="ls -FlAh | more" | |
| # show directories only | |
| alias dsdd="ls -FlA | grep :*/" | |
| # show executables only | |
| alias dsdx="ls -FlA | grep \*" | |
| # show non-executables | |
| alias dsdnx="ls -FlA | grep -v \*" | |
| # order by date | |
| alias dsdt="ls -FlAtr " | |
| # dsd plus sum of file sizes | |
| alias dsdz="ls -Fla $1 $2 $3 $4 $5 | awk '{ print; x=x+\$5 } END { print \"total bytes = \",x }'" | |
| # only file without an extension | |
| alias noext='dsd | egrep -v "\.|/"' | |
| # send pwd to titlebar in puttytel | |
| alias ttb='echo -ne "33]0;`pwd`07"' | |
| # send parameter to titlebar if given, else remove certain paths from pwd | |
| alias ttbx="titlebar" | |
| # titlebar | |
| if [ $# -lt 1 ] | |
| then | |
| ttb=`pwd | sed -e 's+/projects/++' -e 's+/project01/++' -e 's+/project02/++' -e 's+/export/home/++' -e 's+/home/++'` | |
| else | |
| ttb=$1 | |
| fi | |
| echo -ne "33]0;`echo $ttb`07" | |
| alias machine="echo you are logged in to ... `uname -a | cut -f2 -d' '`" | |
| alias info='clear;machine;pwd' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment