summaryrefslogtreecommitdiff
path: root/etc/aliases
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-11-12 22:02:20 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-11-12 22:02:20 +0100
commitc7927ea61730bd6d8a283078d89dffdca08535cd (patch)
tree2f6098a2aa4070d9d35c6a4c1cf9614a8da9c0f6 /etc/aliases
parentd3d4767fb5ba7e036cdbb8e351f678e54e95078f (diff)
Merge stuff into .zshrc
Diffstat (limited to 'etc/aliases')
-rw-r--r--etc/aliases/debian46
-rw-r--r--etc/aliases/default69
-rw-r--r--etc/aliases/font9
-rw-r--r--etc/aliases/global9
-rw-r--r--etc/aliases/short46
-rw-r--r--etc/aliases/suffix20
-rw-r--r--etc/aliases/x49
7 files changed, 0 insertions, 248 deletions
diff --git a/etc/aliases/debian b/etc/aliases/debian
deleted file mode 100644
index 1ca5e2d..0000000
--- a/etc/aliases/debian
+++ /dev/null
@@ -1,46 +0,0 @@
-## vim:ft=zsh
-## Debian package system (aptitude/apt-get, apt-cache, dpkg)
-
-# Search the packages list
-alias acse='apt-cache search'
-alias afse='apt-file search'
-alias apse='aptitude search'
-
-# Show package information
-alias acp='apt-cache policy'
-alias acsh='apt-cache show'
-alias afsh='apt-file show'
-alias apsh='aptitude show'
-alias dps='dpkg --status'
-
-# Update packages list
-salias agu='apt-get update'
-salias apu='aptitude update'
-
-# Update packages
-salias ags='apt-get upgrade'
-salias agf='apt-get dist-upgrade'
-salias aps='aptitude safe-upgrade'
-salias apf='aptitude full-upgrade'
-
-# Install packages
-salias agi='apt-get install'
-salias api='aptitude install'
-salias dpi='dpkg --install'
-
-# Clean packages cache
-salias agc='apt-get clean'
-salias apc='aptitude clean'
-
-# Remove/Purge packages
-salias agar='apt-get autoremove'
-salias agp='apt-get purge'
-salias agr='apt-get remove'
-salias dpp='dpkg --purge'
-salias dpr='dpkg --remove'
-
-# Get package source
-alias agsrc='apt-get source'
-
-# Configure packages
-salias dprc='dpkg-reconfigure'
diff --git a/etc/aliases/default b/etc/aliases/default
deleted file mode 100644
index 85d8c5e..0000000
--- a/etc/aliases/default
+++ /dev/null
@@ -1,69 +0,0 @@
-## vim:ft=zsh
-## Some useful default options
-## To evade them, use '=foo' instead of 'foo'
-
-
-## grep
-linux: {
- alias egrep='grep -E --color=auto'
- alias fgrep='grep -F --color=auto'
- alias grep='grep --color=auto'
-}
-
-
-## file and filesystem information
-# human-readable sizes, local filesystems only
-linux: alias df='df -hl --exclude-type=fuse.encfs' ||
- alias df='df -hl'
-
-# human-readable sizes, summarize, dereference args
-linux: alias du='du -shD' ||
- alias du='du -shH'
-
-# human-readable sizes, mark executables with '*' etc.
-linux: alias ls='ls -h --color=auto' ||
- alias ls='ls -Fh'
-
-## enable alias expansion
-alias exec='exec '
-alias sudo='sudo '
-
-## networking
-alias mx='mx -aZ'
-
-# Only TCP/TCP6, not sockets and such
-linux: salias netstat='netstat --program --all --tcp --extend' ||
- salias netstat='netstat -atp tcp'
-
-
-# less frequent updates when running ncdu via ssh
-[[ -n $SSH_CONNECTION ]] && check_com -c ncdu && alias ncdu='ncdu -q'
-
-alias bc='bc -l'
-
-alias cal='cal -m'
-alias fbi='fbi -readahead'
-
-# I keep accidently overwriting files
-alias cp='cp -i'
-alias mv='mv -i'
-
-# no atime
-alias pmount='pmount -A'
-
-# find does globbing itself
-alias find='noglob find'
-
-# Show all available manuals (all sections)
-alias man='man -a'
-
-# BSD style
-alias ps='ps -F'
-
-# use unicode, reattach anyway, resize if neccessary
-alias screen='tscreen -ADRUa'
-
-alias tilp='kdesudo "tilp --calc=ti84+ --cable=DirectLink"'
-
-# Don't collapse trees
-alias todo='noglob todo -f +children'
diff --git a/etc/aliases/font b/etc/aliases/font
deleted file mode 100644
index 986df27..0000000
--- a/etc/aliases/font
+++ /dev/null
@@ -1,9 +0,0 @@
-## Shamelessly stolen from http://git.kitenet.net/?p=joey/home-etc;a=summary
-## vim:ft=zsh
-alias font-tiny='echo -en "\033]50;-misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1\007"'
-alias font-small='echo -en "\033]50;6x10\007"'
-alias font-default='echo -e "\033]50;-misc-fixed-medium-r-semicondensed--13-*-*-*-*-*-iso10646-1\007"'
-alias font-medium='echo -en "\033]50;-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1\007"'
-alias font-large='echo -en "\033]50;-misc-fixed-medium-*-*-*-15-*-*-*-*-*-iso10646-1\007"'
-alias font-larger='echo -en "\033]50;-misc-fixed-medium-r-normal--18-*-*-*-*-*-iso10646-1\007"'
-alias font-huge='echo -en "\033]50;-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1\007"'
diff --git a/etc/aliases/global b/etc/aliases/global
deleted file mode 100644
index 4398484..0000000
--- a/etc/aliases/global
+++ /dev/null
@@ -1,9 +0,0 @@
-## Global aliases
-## evil, but rarely messy
-## vim:ft=zsh
-alias -g EG='|egrep'
-alias -g FG='|fgrep'
-alias -g G='|grep'
-alias -g H='|head'
-alias -g L='|less'
-alias -g T='|tail'
diff --git a/etc/aliases/short b/etc/aliases/short
deleted file mode 100644
index bff06c9..0000000
--- a/etc/aliases/short
+++ /dev/null
@@ -1,46 +0,0 @@
-## Short aliases
-## vim:ft=zsh
-
-## For Loops
-alias allf='for i in *(.);'
-alias alld='for i in *(/);'
-alias alle='for i in *(*);'
-alias alll='for i in *(@);'
-alias all='for i in *;'
-
-alias allfr='for i in **/*(.);'
-alias alldr='for i in **/*(/);'
-alias aller='for i in **/*(*);'
-alias alllr='for i in **/*(@);'
-alias allr='for i in **/*;'
-
-alias dua='du --apparent-size'
-
-alias lasth='last | head -$((LINES-1))'
-
-## fbi
-alias fbif='fbi -a'
-alias fbij='fbi -a -u'
-
-for i in ~/var/gtd/*(.N); {
- alias gtd-${i:t}='todo --database '$i
-}
-
-# File listings
-alias lsi='feh --list'
-alias lst='tar tvf'
-alias lsz='unzip -l'
-
-alias nb='newsbeuter'
-alias nbr='newsbeuter -r'
-
-alias rd='rmdir'
-
-alias rsync-serve="rsync --daemon --port=10873 --no-detach --config=/dev/stdin --log-file=/dev/stdout -v <<< $'[.]\n\tpath = .\n\tuse chroot = no'"
-
-## Suspend
-salias s2d='s2disk'
-salias s2r='s2ram -f'
-
-## Getränke
-alias mate='decrement ~/stuff/$(cat ~/var/tmp/.actual-location)/mateguthaben'
diff --git a/etc/aliases/suffix b/etc/aliases/suffix
deleted file mode 100644
index 2587c3e..0000000
--- a/etc/aliases/suffix
+++ /dev/null
@@ -1,20 +0,0 @@
-## Sufix aliases
-## Like, enter "somefile.ogg" and zsh will automatically open it using $audio_app
-## vim:ft=zsh
-
-typeset -A alias_apps
-alias_apps=(
- archive extract
- audio mplayer
- document kpdf
- image feh
- video mplayer
-)
-
-for meta in ${parameters[(I)mime_*]#mime_}; {
- for format in $(eval echo "$"mime_$meta); {
- alias -s $format=$alias_apps[$meta]
- }
-}
-
-unset filetypes meta format alias_apps
diff --git a/etc/aliases/x b/etc/aliases/x
deleted file mode 100644
index 1a41cc3..0000000
--- a/etc/aliases/x
+++ /dev/null
@@ -1,49 +0,0 @@
-## vim:ft=zsh
-
-# feh etc if X is running, x for startx otherwise
-if pgrep -x Xorg &> /dev/null; then
-
- # quiet and verbose can actually be used together here.
- # quiet = suppress non-critical errors, verbose = show progress bars
- alias feh='feh --quiet --verbose'
-
- # Alias structure:
- # feh[theme][recursive?][slide-delay?]
- # theme = [f]ullscreen | [i]ndex | [j]ust | [t]humbnail
- # recursive: r for recursive, nothing otherwise
- # slide-delay:
- # none - no slideshow
- # number - slideshow, $number seconds per image
- # x - slideshow, seconds will be specified on commandline
- # (like "fehfrx 7 .")
- # the themes are defined in .fehrc
- alias fehf='feh -Tfull' # Fullscreen
- alias fehfr='feh -Tfull --recursive'
- alias fehi='feh .fehindex.jpg'
- alias fehj='feh -Tjust' # Screensaver-like
- alias fehjr='feh -Tjust --recursive'
- for i in {5,10,15,20}; {
- alias fehj$i="feh -Tjust --slideshow-delay $i"
- alias fehf$i="feh -Tfull --slideshow-delay $i"
- alias fehjr$i="feh -Tjust --slideshow-delay $i --recursive"
- alias fehfr$i="feh -Tfull --slideshow-delay $i --recursive"
- }
- alias fehjx='feh -Tjust --slideshow-delay'
- alias fehfx='feh -Tfull --slideshow-delay'
- alias fehjrx='feh -Tjust --recursive --slideshow-delay'
- alias fehfrx='feh -Tfull --recursive --slideshow-delay'
- alias feht='feh -Tthumbnail' # List thumbnails
- alias fehtr='feh -Tthumbnail --recursive'
-
- # Automatically upload screenshot plzkthx
- alias putscreen='put $(screenshot)'
-
- # Useful when a beamer is connected to my laptop
- alias rplayer='mplayer -vo x11 -zoom -vf scale=1024:-2'
-
- # show current weather
- alias weather='feh http://www.bredeney-wetter.de/aktuell.gif'
-else
- # start x and log out immediately
- alias x='unsetopt bg_nice; startx &! exit'
-fi