改変を続けた.bashrc

echo "initializing .bashrc....."
date
# Custom alias
alias ka='killall'
alias k='kill'
alias ls='ls -G'
alias ll='ls -al'
alias l='ls -aF'
alias cl='clear'
alias h='history 50'
alias cpi='cp -i'
alias rmi='rm -i'
alias mvi='mv -i'
alias vi='vim'
alias view='vim'
alias diskm='diskutil mount'
alias disku='diskutil unmount'
alias j='jobs -l'
alias opend='open -R'
alias scrcap='screeccapture -iW'
alias ascpt='osascript'
alias 744='chmod 744'
alias 755='chmod 755'
alias 644='chmod 644'
alias memst='vm_stat'
alias top='top -orsize'
# Open Applications
alias mi='open -a mi'
alias co='open -a CotEditor'
alias xcode='open -a Xcode'
alias ibuild='open -a Interface¥ Builder'
alias fire='open -a Firefox¥ for¥ Mac3.5.5'
alias opera='open -a Opera'
alias dw='open -a Adobe¥ Dreamweaver¥ CS4'
alias aulab='open -a AU¥ Lab'
alias apedit='open -a AppleScript¥ Editor'
alias xls='open -a Microsoft¥ Excel'

# defined shell script
alias kaa='‾/src/sh/system_sh/ka_process.sh'
alias rmt='‾/src/sh/function_sh/RemoveTrash.sh'
alias busrc='‾/src/sh/function_sh/backup_src.sh'
alias gj='‾/src/sh/function_sh/google.sh'
alias google='‾/src/sh/function_sh/google.sh'
alias ggrks='‾/src/sh/function_sh/google.sh'
alias budoc='‾/src/sh/function_sh/backup_doc.sh'
# defined AppleScript
alias rmb='osascript ‾/src/AppleScript/rmTrash.scpt'

# system
alias ver='sw_vers'
alias reboot='‾/src/sh/system_sh/reboot.sh'

# custom function
# change directry
function hdd
{
cd /Volumes/HD-H300U2/;
}
function usbmem
{
cd /Volumes/RUF-C/U2/;
}
function tmp
{
cd ‾/tmp/;
}

function cdir
{
cd ‾/src/c/;
}

function javadir
{
cd ‾/src/java/;
}

function cppdir
{
cd ‾/src/cpp/;
}

function dl
{
cd ‾/Downloads/;
}

function src
{
cd ‾/src/;
}

function sh
{
cd ‾/src/sh/;
}

function phpdir
{
cd ‾/src/cgi/php/;
}

function perldir
{
cd ‾/src/cgi/perl/;
}
function ap
{
cd /Applications/;
}

function util
{
cd /Applications/Utilities/;
}
function cocoadir
{
cd ‾/src/cocoa/project/;
}

function cgidir
{
cd ‾/src/html/cgi/;
}

# action
function i
{
if [ "$1" ]; then
history 100 | grep "$@";
else history 30;
fi;
}
function dispstatus
{
if [[ "$STY" ]]; then
echo -en "¥033k$1¥033¥134";
fi
}
function showexit
{
local s = $?
dispstatus "${PWD/¥/home¥/randy/‾}"
if [[ $s -eq 0 ]]; then
return;
fi
echo "exit $s"
}

function appstatus
{
ls | cat >> ‾/AppResult.txt;
}

echo "loading complete!!"


ログインが遅くなるからこれ以上増やすのはやめとこう・・・

0 Response to "改変を続けた.bashrc"

コメントを投稿

Powered by Blogger