mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
124 lines
4.6 KiB
Plaintext
124 lines
4.6 KiB
Plaintext
|
#
|
|||
|
# ***** BEGIN LICENSE BLOCK *****
|
|||
|
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
|||
|
#
|
|||
|
# The contents of this file are subject to the Mozilla Public License Version
|
|||
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|||
|
# the License. You may obtain a copy of the License at
|
|||
|
# http://www.mozilla.org/MPL/
|
|||
|
#
|
|||
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|||
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|||
|
# for the specific language governing rights and limitations under the
|
|||
|
# License.
|
|||
|
#
|
|||
|
# The Original Code is mozilla.org code.
|
|||
|
#
|
|||
|
# The Initial Developer of the Original Code is
|
|||
|
# Netscape Communications Corporation.
|
|||
|
# Portions created by the Initial Developer are Copyright (C) 1996-2003
|
|||
|
# the Initial Developer. All Rights Reserved.
|
|||
|
#
|
|||
|
# Contributor(s):
|
|||
|
# Mark Smith <MarkCSmithWork@aol.com>
|
|||
|
#
|
|||
|
# Alternatively, the contents of this file may be used under the terms of
|
|||
|
# either of the GNU General Public License Version 2 or later (the "GPL"),
|
|||
|
# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
|||
|
# in which case the provisions of the GPL or the LGPL are applicable instead
|
|||
|
# of those above. If you wish to allow use of your version of this file only
|
|||
|
# under the terms of either the GPL or the LGPL, and not to allow others to
|
|||
|
# use your version of this file under the terms of the MPL, indicate your
|
|||
|
# decision by deleting the provisions above and replace them with the notice
|
|||
|
# and other provisions required by the GPL or the LGPL. If you do not delete
|
|||
|
# the provisions above, a recipient may use your version of this file under
|
|||
|
# the terms of any one of the MPL, the GPL or the LGPL.
|
|||
|
#
|
|||
|
# ***** END LICENSE BLOCK *****
|
|||
|
|
|||
|
# Aliases to tweak the behavior of some existing commands:
|
|||
|
alias cd 'cd \!*;echo $cwd'
|
|||
|
alias df 'df -k'
|
|||
|
alias du 'du -k'
|
|||
|
alias ls 'ls -F'
|
|||
|
alias top 'top -I'
|
|||
|
alias vi vim
|
|||
|
|
|||
|
# Misc. time saving aliases:
|
|||
|
alias 'stty erase ^?'
|
|||
|
alias 'stty erase ^H'
|
|||
|
alias c clear
|
|||
|
alias pd pushd
|
|||
|
alias po popd
|
|||
|
alias j 'jobs -l'
|
|||
|
alias z suspend
|
|||
|
alias so 'source ~/.cshrc'
|
|||
|
alias h history
|
|||
|
alias dfl '\df -kl'
|
|||
|
alias psview sdtimage
|
|||
|
alias proc 'ps -ef | grep'
|
|||
|
alias myps 'ps -ef | grep "'^ \*$user'" | sort -k 2,2'
|
|||
|
alias gtar 'tar cvf - \!:1 | gzip -c > \!:2'
|
|||
|
alias guntar 'gunzip -c \!* | tar xvf -'
|
|||
|
alias guntart 'gunzip -c \!* | tar tvf -'
|
|||
|
alias word 'grep -iw \!* /usr/dict/words'
|
|||
|
alias wordst 'grep -i "^\!*" /usr/dict/words'
|
|||
|
|
|||
|
# VI and VIM aliases:
|
|||
|
alias ovi4 '(setenv EXINIT "$EXINIT4"; \vi \!*)'
|
|||
|
alias ovi8 '(setenv EXINIT "$EXINIT8"; \vi \!*)'
|
|||
|
alias vi4 '(setenv EXINIT "$EXINIT4"; vi \!*)'
|
|||
|
alias vi8 '(setenv VIMINIT "$VIMINIT8"; vi \!*)'
|
|||
|
|
|||
|
|
|||
|
# Printing/lp/lpr aliases:
|
|||
|
alias ps2up 'psnup -2 -d'
|
|||
|
alias lpps2up 'lpps -y group'
|
|||
|
alias lpman 'troff -man -Tpost \!* | /usr/lib/lp/postscript/dpost | lpps'
|
|||
|
alias pcal 'pcal -m'
|
|||
|
|
|||
|
# Network aliases:
|
|||
|
alias ping 'ping -sndv'
|
|||
|
alias vncserver '\vncserver -alwaysshared -geometry 1024x768'
|
|||
|
alias vncviewer '\vncviewer -shared'
|
|||
|
alias vnc vncviewer
|
|||
|
|
|||
|
# Conversion aliases:
|
|||
|
alias tohex 'echo 16o \!:1p | dc'
|
|||
|
alias fromhex 'echo 16i \!*p | dc'
|
|||
|
alias tobin 'echo 2o \!*p | dc'
|
|||
|
alias frombin 'echo 2i \!*p | dc'
|
|||
|
|
|||
|
# CVS aliases:
|
|||
|
alias cvsst 'cvs -nq status | grep "File:" | grep -v "Up-to-date"'
|
|||
|
alias cvsnup 'cvs -nq update'
|
|||
|
alias cvsup 'cvs -q update'
|
|||
|
alias cvsd 'cvs -nq diff -tU8 -N \!* | expand -4'
|
|||
|
alias cvsdf 'cvs -nq diff -U8 -N \!* | expand -4 > /tmp/diffs.txt; ls -l /tmp/diffs.txt'
|
|||
|
alias cvsaddtree 'find . -name CVS -prune -o -type d -exec cvs add {} \; ; find . -name CVS -prune -o -type f -exec cvs add {} \;'
|
|||
|
alias cvscol 'cvsco >& Log.co & ; sleep 5; tail -f Log.co'
|
|||
|
alias cvsdm '(setenv CVSROOT $MOZ_CVSROOT; cvsd \!*)'
|
|||
|
alias cvslbm '(setenv CVSROOT $MOZ_CVSROOT; cvslb \!*)'
|
|||
|
alias cvsdlm '(setenv CVSROOT $MOZ_CVSROOT; cvsdl \!*)'
|
|||
|
|
|||
|
# find aliases:
|
|||
|
alias find-files-cmd 'find . -type f'
|
|||
|
alias findf 'find-files-cmd \!* -print'
|
|||
|
alias rmfindf 'findf \!* -exec rm {} \;'
|
|||
|
alias grepf 'find-files-cmd -exec grep -l \!* {} \;'
|
|||
|
alias findd 'find . -type d \!* -print'
|
|||
|
alias rmfindd 'find . -type d \!* -exec rm -rf {} \;'
|
|||
|
|
|||
|
# goto URL aliases for mozilla browswers:
|
|||
|
alias gurl 'mozilla -remote openurl\(\!*\)'
|
|||
|
alias gbug 'gurl http://scopus.mcom.com/bugsplat/show_bug.cgi\?id=\!*'
|
|||
|
alias gfile 'gurl file:\!*'
|
|||
|
alias gfilecwd 'gurl file:`pwd`/\!*'
|
|||
|
|
|||
|
# RFC and Internet Draft retrieval aliases:
|
|||
|
alias ftpgeturl 'ncftpget -F'
|
|||
|
alias getrfcn 'gurl ftp://ftp.isi.edu/in-notes/rfc\!*.txt'
|
|||
|
alias getrfc 'ftpgeturl ftp://ftp.isi.edu/in-notes/rfc\!*.txt'
|
|||
|
alias getidn 'gurl http://www.ietf.org/internet-drafts/\!*'
|
|||
|
alias getid 'ftpgeturl ftp://www.ietf.org/internet-drafts/\!*'
|