]> git.madduck.net Git - etc/zsh.git/blobdiff - .zsh/zshrc/30_aliases.disabled

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Overhaul of the entire config. Yay for big diffs.
[etc/zsh.git] / .zsh / zshrc / 30_aliases.disabled
similarity index 62%
rename from .zsh/zshrc/30_aliases
rename to .zsh/zshrc/30_aliases.disabled
index 9614b2555d8bc91a5e35db1778df40eec41e365d..9b1039030ee9f99d46641dc2d38e8ece50de90a0 100644 (file)
@@ -8,82 +8,6 @@
 # Source repository: http://git.madduck.net/v/etc/zsh.git
 #
 
-function trace() { eval "set -x; $@" }
-
-alias mv='nocorrect mv'
-alias cp='nocorrect cp'
-alias ln='nocorrect ln'
-alias mkdir='nocorrect mkdir'
-alias rm='nocorrect rm'
-
-alias find='noglob find'
-alias w3m='noglob w3m -no-mouse'
-alias links='noglob links'
-alias wb='noglob www-browser'
-alias wget='noglob wget'
-alias curl='noglob curl'
-alias apt-cache='noglob apt-cache'
-alias locate='noglob locate'
-
-local _USER_AGENT="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.14) Gecko/20080404 Iceweasel/2.0.0.14 (Debian-2.0.0.14-2)"
-alias swget="noglob wget --user-agent='$USER_AGENT'"
-
-typeset -a _ls_opts; _ls_opts=(-bC --color=auto)
-command ls --group-directories-first >/dev/null 2>&1 \
-  && _ls_opts+=--group-directories-first
-# I prefer POSIX collation for ls
-alias ls="LC_COLLATE=POSIX ls $_ls_opts"
-
-alias l='ls --time-style=+%Y-%m-%d-%H:%M -gG'
-alias ll='ls -l'
-alias la='ls -a'
-alias lla='ls -la'
-alias lt='ls -lt'
-alias lrt='ls -lrt'
-alias lat='ls -lat'
-alias lart='ls -lart'
-# List only directories and symbolic links that point to directories
-alias lsd='ll -d *(-/DN)'
-
-alias lscontext=ls
-cd () { __CHPWD_RUN_FIRST=lscontext && builtin cd "$@" && unset __CHPWD_RUN_FIRST }
-#_cd_l() { ll }
-#chpwd_functions+=_cd_l
-
-# #183394
-alias w='w|cat'
-
-alias -g ND='*(/om[1])' # newest directory
-alias -g NF='*(.om[1])' # newest file
-
-alias egrep='egrep --color=auto -d skip -D skip'
-alias fgrep='fgrep --color=auto -d skip -D skip'
-alias grep='grep --color=auto -d skip -D skip'
-
-alias mmv='noglob zmv -W'
-alias zcp='zmv -C'
-alias zln='zmv -L'
-alias zgmv='zmv -p git-mv'
-
-alias cal='cal -3'
-alias ftp=lftp
-
-alias mbug='bts show --mbox'
-alias bug='BROWSER=www-browser bts show'
-
-edalias() {
-  [[ -z "$1" ]] && { echo "Usage: edalias <alias_to_edit>" ; return 1 } || vared aliases'[$1]' ;
-}
-compdef _aliases edalias
-
-edfunc() {
-  [[ -z "$1" ]] && { echo "Usage: edfunc <function_to_edit>" ; return 1 } || zed -f "$1" ;
-}
-compdef _functions edfunc
-
-doc() { cd /usr/share/doc/$1 }
-compdef '_files -W /usr/share/doc -/' doc
-
 alias giti='git init && git add . && git commit -minitial\ checkin && git tag orig'
 gbs() {
   local branch; branch="$(git symbolic-ref -q HEAD)"; branch="${branch##*/}"
@@ -123,33 +47,8 @@ function lgrep() {
   eval egrep "'$pattern'" "~log/${(j: ~log/:)@}"
 }
 
-alias px='ps afux'
-alias mps='ps -ao user,pcpu,start,command'
-
-function of() { lsof -np "$1" }
-compdef _pids of
-
 function psgrep() { ps aux | grep "[${1[1]}]${1[2,-1]}" }
 
-alias rw-='chmod 600'
-alias rwx='chmod 700'
-alias r--='chmod 644'
-alias r-x='chmod 755'
-alias r-s='chmod 2755'
-alias rws='chmod 2775'
-
-alias bofh='fortune bofh-excuses'
-
-autoload -U baseconv
-alias b2d='baseconv 2 10'
-alias d2b='baseconv 10 2'
-alias d2h='baseconv 10 16'
-alias h2d='baseconv 16 10'
-alias d2o='baseconv 10 8'
-alias d2o='baseconv 10 8'
-alias h2b='baseconv 16 2'
-alias b2h='baseconv 2 16'
-
 alias sendmail=/usr/sbin/sendmail
 
 _d() { dict $* }
@@ -174,8 +73,6 @@ for l in ${(k)_LANGUAGES}; do
 done
 unset _LANGUAGES
 
-alias dpkg-buildpackage="dpkg-buildpackage -k$DEBKEYID -rfakeroot"
-
 bugsub() { echo X-debbugs-autosubscribe: madduck | sendmail -f $DEBEMAIL ${1:?No bug number}-subscribe@bugs.debian.org }
 bugunsub() { sendmail -f $DEBEMAIL ${1:?No bug number}-unsubscribe@bugs.debian.org </dev/null }
 ptssub() { echo subscribe ${1:?E: no package name given.} | sendmail -f ${2:-$DEBEMAIL} pts@qa.debian.org }