X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=b80a7e440a95878ee0a31a0725493803836fea29;hb=e6beda13323ec34d2b6e404297799ac2b67f8d7b;hp=7bfdf4d057f4815fd39f8c818d1240078f86230f;hpb=d2ac1657a6592f05cc3084654a61ffaacd679b2a;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 7bfdf4d..b80a7e4 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -2691,19 +2691,7 @@ cvss() { emulate -L zsh cvs status -v $* } -#f5# Disassemble source files using gcc and as -disassemble(){ - emulate -L zsh - gcc -pipe -S -o - -O -g $* | as -aldh -o /dev/null -} -#f5# Firefox remote control - open given URL -fir() { - if [ -e /etc/debian_version ]; then - firefox -a iceweasel -remote "openURL($1)" || firefox ${1}& - else - firefox -a firefox -remote "openURL($1)" || firefox ${1}& - fi -} + # smart cd function, allows switching to /etc when running 'cd /etc/fstab' cd() { if (( ${#argv} == 1 )) && [[ -f ${1} ]]; then @@ -2726,10 +2714,6 @@ cdt() { echo "$t" builtin cd "$t" } -#f5# Unified diff to timestamped outputfile -mdiff() { - diff -udrP "$1" "$2" > diff.`date "+%Y-%m-%d"`."$1" -} #f5# Create directory under cursor or the selected area # Press ctrl-xM to create the directory under the cursor or the selected area. @@ -2765,11 +2749,6 @@ inplaceMkDirs() { #k# mkdir -p from string under cursor or marked area zle -N inplaceMkDirs && bindkey '^XM' inplaceMkDirs -#f5# Memory overview -memusage() { - ps aux | awk '{if (NR > 1) print $5; if (NR > 2) print "+"} END { print "p" }' | dc -} - # Function Usage: doc packagename #f5# \kbd{cd} to /usr/share/doc/\textit{package} doc() {