Updates when moving spiderweb WSL to spider WSL.
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
# TODO: detect color support and enable/disable color in aliases based on that.
|
||||
# File Manipulation
|
||||
# TODO: bash ls doesn't need -G or maybe macs don't. Figure that out and use that test here.
|
||||
alias ls='ls -G --color=auto'
|
||||
alias lsd='ls -G --color=auto -d'
|
||||
alias ll='ls -G --color=auto -l'
|
||||
@@ -6,12 +8,16 @@ alias lld='ls -G --color=auto -l -d'
|
||||
alias lsg='ls | grep --color'
|
||||
alias llg='ls -l| grep --color'
|
||||
alias ln='ln -ivw'
|
||||
alias grep='grep --color'
|
||||
alias grep='grep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
alias egrep='egrep --color=auto'
|
||||
alias slash='ls -SlAhr'
|
||||
alias slasher='ls -SlAh'
|
||||
alias slashed='ls -SlAhrd'
|
||||
alias dud='function { du -h -d 1 $* | sort -h }'
|
||||
alias dud='function f() { du -h -d 1 "$@" 2>/dev/null | sort -h ; unset -f f; }; f'
|
||||
alias dudr='function { du -h -d 1 $* | sort -h -r }'
|
||||
alias dudr='function f() { du -h -d 1 "$@" 2>/dev/null | sort -h -r ; unset -f f; }; f'
|
||||
alias mvn='mv -n'
|
||||
alias gmv='mv $* ~/Google\ Drive/My\ Drive/'
|
||||
alias gmvn='mv -n $* ~/Google\ Drive/My\ Drive/'
|
||||
@@ -21,8 +27,9 @@ alias gmv='mv $* ~/OneDrive/'
|
||||
alias gmvn='mv -n $* ~/OneDrive/'
|
||||
alias mv='mv -i'
|
||||
alias rm='rm -i'
|
||||
alias rs='rsync -avhz --no-perms'
|
||||
alias rs='rsync -avhz --no-perms --progress'
|
||||
alias ds='function { du -h -d 1 $* | sort -h | tee ~/dirsize }'
|
||||
alias ds='function f() { du -h -d 1 $* | sort -h | tee ~/dirsize ; unset -f f; }; f'
|
||||
alias md=mkdir
|
||||
alias rd=rmdir
|
||||
|
||||
@@ -50,6 +57,7 @@ alias hashes='md5deep -r'
|
||||
alias lsusb='system_profiler SPUSBDataType'
|
||||
alias tea='tee -a'
|
||||
alias find_recent='function { find . $* -exec ls -ltr {} + }'
|
||||
alias find_recent='function f() { find . $* -exec ls -ltr {} + ; unset -f f; }; f'
|
||||
|
||||
# In Development
|
||||
|
||||
@@ -60,3 +68,18 @@ alias log_and_do='function { `echo "# $1 >> $2\n" > $2 && echo $1` >> $2 }'
|
||||
# This should get the PIDs of any avd commands running and kill-9 them and then do the
|
||||
# same as kill-all-android-emulators to clean them up after.
|
||||
# alias kaae="kill -9 `ps aux | grep avd | sed '$d' | cut -f 2 -w` > /dev/null"
|
||||
|
||||
# TODO: Stuff I don't know why other configs setup
|
||||
#alias dir='dir --color=auto'
|
||||
#alias vdir='vdir --color=auto'
|
||||
#alias ll='ls -alF'
|
||||
#alias la='ls -A'
|
||||
#alias l='ls -CF'
|
||||
# From Bash on Ubuntu
|
||||
# Add an "alert" alias for long running commands. Use like so:
|
||||
# sleep 10; alert
|
||||
#alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||
|
||||
# WSL Specific
|
||||
#alias pbcopy=clip.exe
|
||||
#alias pbpaste="powershell.exe -noprofile Get-Clipboard"
|
||||
|
||||
Reference in New Issue
Block a user