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"
|
||||
|
||||
@@ -19,3 +19,31 @@ if [ -n "${ANDROID_HOME}" ]; then
|
||||
fi
|
||||
|
||||
# "extras;google;simulators" "ndk;27.0.11718014" "platform-tools" "platforms;android-34" "system-images;android-34;default;arm64-v8a"
|
||||
|
||||
function anon() {
|
||||
local android_studio_sdk_home_on_mac="$HOME/Library/Android/sdk"
|
||||
local android_home=
|
||||
if [ -d "$android_studio_sdk_home_on_mac" ]; then
|
||||
android_home="$android_studio_sdk_home_on_mac"
|
||||
elif [ -d "$android_cmdline_tools_on_mac" ]; then
|
||||
android_home="$android_cmdline_tools_on_mac"
|
||||
fi
|
||||
|
||||
if [ -n "$android_home" ]; then
|
||||
export ANDROID_HOME="$android_home"
|
||||
if [ -d "$android_home/cmdline-tools/latest/bin" ]; then
|
||||
path=("$android_home/cmdline-tools/latest/bin" $path)
|
||||
fi
|
||||
# TODO: Get the appropriate directories based on what is available.
|
||||
path=(${ANDROID_HOME}/build-tools/34.0.0 $path)
|
||||
path=(${ANDROID_HOME}/ndk/26.1.0909125 $path)
|
||||
path=(${ANDROID_HOME}/platform-tools $path)
|
||||
path=(${ANDROID_HOME}/tools $path)
|
||||
path=(${ANDROID_HOME}/tools:/bin $path)
|
||||
fi
|
||||
|
||||
# "extras;google;simulators" "ndk;27.0.11718014" "platform-tools" "platforms;android-34" "system-images;android-34;default;arm64-v8a"
|
||||
|
||||
unset -f anon
|
||||
}
|
||||
anon
|
||||
|
||||
2
.rc.d/gcc.sh.disabled
Normal file
2
.rc.d/gcc.sh.disabled
Normal file
@@ -0,0 +1,2 @@
|
||||
# colored GCC warnings and errors
|
||||
#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
|
||||
17
.rc.d/homebrew.sh.disabled
Normal file
17
.rc.d/homebrew.sh.disabled
Normal file
@@ -0,0 +1,17 @@
|
||||
# If both intel and arm versions are installed the arm version will be the default brew, but aliases will be available to run either specifically.
|
||||
|
||||
# If intel Homebrew is installed activate it.
|
||||
if [ -x "/usr/local/homebrew/bin/brew" ]; then
|
||||
eval "$(/usr/local/homebrew/bin/brew shellenv)"
|
||||
|
||||
# If arm Homebrew is also installed create aliases for each version
|
||||
if [ -x "/opt/homebrew/bin/brew" ]; then
|
||||
alias brew86='arch -x86_64 /usr/local/homebrew/bin/brew'
|
||||
alias brewarm='arch -arm64 /opt/homebrew/bin/brew'
|
||||
fi
|
||||
fi
|
||||
|
||||
# If arm Homebrew is installed activate it.
|
||||
if [ -x "/opt/homebrew/bin/brew" ]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
fi
|
||||
2
.rc.d/lesspipe.sh
Normal file
2
.rc.d/lesspipe.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
# make less more friendly for non-text input files, see lesspipe(1)
|
||||
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
||||
@@ -1,34 +1,5 @@
|
||||
# export LSCOLORS=ExfxcxdxbxEgEdabagacad
|
||||
# export LSCOLORS=GxFxedGdCxEgEdCbCdacad
|
||||
# export LSCOLORS=BxGxedGdCxxExFHBDBbcbd
|
||||
# zsh
|
||||
export LSCOLORS=FxGxedGdCxxExFHBDBbcbd
|
||||
|
||||
# a black
|
||||
# b red
|
||||
# c green
|
||||
# d brown
|
||||
# e blue
|
||||
# f magenta
|
||||
# g cyan
|
||||
# h light grey
|
||||
# A bold black, usually shows up as dark grey
|
||||
# B bold red
|
||||
# C bold green
|
||||
# D bold brown, usually shows up as yellow
|
||||
# E bold blue
|
||||
# F bold magenta
|
||||
# G bold cyan
|
||||
# H bold light grey; looks like bright white
|
||||
# x default foreground or background
|
||||
|
||||
# 1. directory
|
||||
# 2. symbolic link
|
||||
# 3. socket
|
||||
# 4. pipe
|
||||
# 5. executable
|
||||
# 6. block special
|
||||
# 7. character special
|
||||
# 8. executable with setuid bit set
|
||||
# 9. executable with setgid bit set
|
||||
# 10. directory writable to others, with sticky bit
|
||||
# 11. directory writable to others, without sticky bit
|
||||
# bash
|
||||
export LS_COLORS="rs=0:di=95:ln=36:mh=00:pi=96;43:so=34;43:do=34;43:bd=104:cd=105:or=5;96;40:mi=5;30;46:su=97;101:sg=93;101:ca=00:tw=91;42:ow=91;43:st=42:ex=92:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:"
|
||||
|
||||
@@ -6,5 +6,6 @@ function anon() {
|
||||
[ -s $nvm_dir/bash_completion ] && \. $nvm_dir/bash_completion # This loads nvm bash_completion
|
||||
export NVM_DIR=$nvm_dir
|
||||
fi
|
||||
unset -f anon
|
||||
}
|
||||
unset -f anon
|
||||
anon
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
function anon() {
|
||||
if [[ $(command -v yarn) ]]; then
|
||||
local yarn_path="$(yarn global bin)"
|
||||
path=($yarn_path $path)
|
||||
fi
|
||||
}
|
||||
unset -f anon
|
||||
Reference in New Issue
Block a user