abe:zshrc.git
9 years agoMerge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh
Axel Beckert [Fri, 10 Aug 2012 11:37:08 +0000 (13:37 +0200)]
Merge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh

9 years agoBump submodules
Axel Beckert [Fri, 10 Aug 2012 11:36:50 +0000 (13:36 +0200)]
Bump submodules

9 years agoConfigure syntax highlighting colors
Axel Beckert [Fri, 10 Aug 2012 11:35:31 +0000 (13:35 +0200)]
Configure syntax highlighting colors

Dark blue on black is insane, replace with cyan.

Enable bracket matching highlighting and use green for all matched
brackets.

9 years agoRevert one [ to [[ conversion which didn't work out of the box
Axel Beckert [Fri, 3 Aug 2012 22:06:55 +0000 (00:06 +0200)]
Revert one [ to [[ conversion which didn't work out of the box

9 years agoNo more make a distinction between hosts for the imageviewer and use sxiv everywhere
Axel Beckert [Wed, 1 Aug 2012 19:44:53 +0000 (21:44 +0200)]
No more make a distinction between hosts for the imageviewer and use sxiv everywhere

9 years agoFix missing trailing newline
Axel Beckert [Wed, 1 Aug 2012 19:43:44 +0000 (21:43 +0200)]
Fix missing trailing newline

9 years agoConsistently use [[ ... ]] instead of [ ... ] for testing
Axel Beckert [Wed, 1 Aug 2012 19:43:27 +0000 (21:43 +0200)]
Consistently use [[ ... ]] instead of [ ... ] for testing

9 years agoCleaner and less forking implementation of zsh.d
Axel Beckert [Wed, 1 Aug 2012 19:09:10 +0000 (21:09 +0200)]
Cleaner and less forking implementation of zsh.d

10 years agoSupport config directories for Ubuntu 12.04 and 12.10
Axel Beckert [Tue, 24 Apr 2012 16:25:17 +0000 (18:25 +0200)]
Support config directories for Ubuntu 12.04 and 12.10

10 years agoMerge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh
Axel Beckert [Sat, 7 Apr 2012 00:42:26 +0000 (02:42 +0200)]
Merge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh

10 years agoRemove rationalise-dot() again in favour of aliases and global aliases
Axel Beckert [Sat, 7 Apr 2012 00:42:16 +0000 (02:42 +0200)]
Remove rationalise-dot() again in favour of aliases and global aliases

rationalise-dot() proved to cause to many false positives, especially inside quoted strings

10 years agoFix prompt when not being logged in via SSH
Axel Beckert [Thu, 5 Apr 2012 15:31:34 +0000 (17:31 +0200)]
Fix prompt when not being logged in via SSH

10 years agoUse cyan instead of yellow for the ssh flag in the prompt
Axel Beckert [Wed, 4 Apr 2012 14:43:32 +0000 (16:43 +0200)]
Use cyan instead of yellow for the ssh flag in the prompt

10 years agoDon't highlight hostname on SSH but add a colored keyword to the prompt
Axel Beckert [Mon, 2 Apr 2012 11:32:46 +0000 (13:32 +0200)]
Don't highlight hostname on SSH but add a colored keyword to the prompt

10 years agoYellow hostname if logged in on remote host
Axel Beckert [Thu, 29 Mar 2012 15:56:30 +0000 (17:56 +0200)]
Yellow hostname if logged in on remote host

10 years agoFix typo. Thanks Rhonda!
Axel Beckert [Wed, 21 Mar 2012 14:17:13 +0000 (15:17 +0100)]
Fix typo. Thanks Rhonda!

10 years agoBump zsh-syntax-highlighting
Axel Beckert [Sun, 11 Mar 2012 21:39:07 +0000 (22:39 +0100)]
Bump zsh-syntax-highlighting

10 years agoRemove all http aliases and functions
Axel Beckert [Sun, 11 Mar 2012 19:37:13 +0000 (20:37 +0100)]
Remove all http aliases and functions

The package httpie now provides an http command

10 years agoCreate a function md which creates a directory and changes to it
Axel Beckert [Sun, 11 Mar 2012 19:34:05 +0000 (20:34 +0100)]
Create a function md which creates a directory and changes to it

As grml removed the md alias (for "mkdir -p") and renamed the function
mcd (which did the same as this function) to a longer mkcd, I take the
chance to make it the way I always wanted it.

Just to be sure I still check if an md alias exists (which would
overrule the function) and remove it in that case.

10 years agoBump grml-etc-core
Axel Beckert [Sun, 11 Mar 2012 19:29:45 +0000 (20:29 +0100)]
Bump grml-etc-core

10 years agoMerge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh
Axel Beckert [Sun, 19 Feb 2012 13:15:50 +0000 (14:15 +0100)]
Merge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh

10 years agoAlways use European week beginning independent of timezone or locales
Axel Beckert [Sun, 19 Feb 2012 13:15:44 +0000 (14:15 +0100)]
Always use European week beginning independent of timezone or locales

10 years agoNew alias btsmutt
Axel Beckert [Sun, 19 Feb 2012 13:15:06 +0000 (14:15 +0100)]
New alias btsmutt

10 years agoAdd a function named xlock which just does the right thing™
Axel Beckert [Sun, 8 Jan 2012 03:08:04 +0000 (04:08 +0100)]
Add a function named xlock which just does the right thing™

10 years agoPrevent coredumps
Axel Beckert [Tue, 15 Nov 2011 11:16:24 +0000 (12:16 +0100)]
Prevent coredumps

10 years agoAdd warning about personal preferences to the README. :-)
Axel Beckert [Sat, 5 Nov 2011 16:33:44 +0000 (17:33 +0100)]
Add warning about personal preferences to the README. :-)

10 years agoUse zsh-syntax-highlighting just on zsh 4.3.9 or higher (i.e. not Debian Lenny)
Axel Beckert [Sun, 30 Oct 2011 09:56:08 +0000 (10:56 +0100)]
Use zsh-syntax-highlighting just on zsh 4.3.9 or higher (i.e. not Debian Lenny)

10 years agoMerge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh
Axel Beckert [Mon, 8 Aug 2011 13:42:34 +0000 (15:42 +0200)]
Merge branch 'master' of ssh://sym.noone.org/home/abe/git/zsh

10 years agoAdd aptitude-review-unmarkauto-libraries alias
Axel Beckert [Mon, 8 Aug 2011 13:42:24 +0000 (15:42 +0200)]
Add aptitude-review-unmarkauto-libraries alias

10 years agoAutoload and use url-quote-magic
Axel Beckert [Sat, 30 Jul 2011 14:26:21 +0000 (16:26 +0200)]
Autoload and use url-quote-magic

10 years agoSave and restore directory based on work from Chris Lamb
Axel Beckert [Sat, 30 Jul 2011 14:25:42 +0000 (16:25 +0200)]
Save and restore directory based on work from Chris Lamb

See http://chris-lamb.co.uk/2011/07/30/optimising-directory-navigation-multiple-terminals/

10 years agoAdd https://github.com/zsh-users/zsh-syntax-highlighting as submodule
Axel Beckert [Sun, 24 Jul 2011 18:08:49 +0000 (20:08 +0200)]
Add https://github.com/zsh-users/zsh-syntax-highlighting as submodule

11 years agoUse […] instead of just … for path truncation
Axel Beckert [Tue, 28 Jun 2011 20:32:24 +0000 (22:32 +0200)]
Use […] instead of just … for path truncation

11 years agoAlso put zsh version into the prompt
Axel Beckert [Tue, 28 Jun 2011 20:26:51 +0000 (22:26 +0200)]
Also put zsh version into the prompt

11 years agoUse full path in upper line for copy & paste of scp paths
Axel Beckert [Tue, 28 Jun 2011 20:23:30 +0000 (22:23 +0200)]
Use full path in upper line for copy & paste of scp paths

And put a truncated path directly before the commandline

11 years agoUse a simple UTF-8 arrow ("→") instead of a "greater than" (">").
Axel Beckert [Fri, 24 Jun 2011 18:56:03 +0000 (20:56 +0200)]
Use a simple UTF-8 arrow ("→") instead of a "greater than" (">").

Let's see, when I encounter the first box where this breaks so that I have to revert this commit. ;-)

11 years agoPut path behind user@host for copy'n'paste compatible scp syntax.
Axel Beckert [Fri, 24 Jun 2011 18:35:34 +0000 (20:35 +0200)]
Put path behind user@host for copy'n'paste compatible scp syntax.

Put the tty inside the parentheses instead, replace the @ before the
distribution codename by a blank, so all separators inside the
parentheses are blanks.

11 years agoMake prompt two lines
Axel Beckert [Fri, 24 Jun 2011 17:48:14 +0000 (19:48 +0200)]
Make prompt two lines

11 years agoExchange the "U" for Ubuntu flag in the prompt by displaying the distribution after...
Axel Beckert [Fri, 24 Jun 2011 17:47:13 +0000 (19:47 +0200)]
Exchange the "U" for Ubuntu flag in the prompt by displaying the distribution after the process name

11 years agoUpdate to grml-etc-core HEAD
Axel Beckert [Fri, 24 Jun 2011 17:44:01 +0000 (19:44 +0200)]
Update to grml-etc-core HEAD

11 years agoHashed directories: Add wheezy, natty and oneiric
Axel Beckert [Wed, 25 May 2011 13:40:33 +0000 (15:40 +0200)]
Hashed directories: Add wheezy, natty and oneiric

11 years agoUpdate to current grml-etc-core
Axel Beckert [Wed, 25 May 2011 13:39:06 +0000 (15:39 +0200)]
Update to current grml-etc-core

11 years agoSome useful aptitude aliases. Thanks Erich!
Axel Beckert [Sat, 9 Apr 2011 12:12:29 +0000 (14:12 +0200)]
Some useful aptitude aliases. Thanks Erich!

Via http://www.vitavonni.de/blog/201103/2011031502-finding-packages-for-deinstallation.html

11 years agoUpdate grml-etc-core to current HEAD
Axel Beckert [Sat, 5 Mar 2011 14:38:58 +0000 (15:38 +0100)]
Update grml-etc-core to current HEAD

11 years agonoglob youtube-dl by default, too
Axel Beckert [Sat, 5 Mar 2011 14:27:51 +0000 (15:27 +0100)]
noglob youtube-dl by default, too

11 years agoUpdate asc() to call setup-ssh-screen if it exists, else screen as usual
Axel Beckert [Tue, 23 Nov 2010 00:30:06 +0000 (01:30 +0100)]
Update asc() to call setup-ssh-screen if it exists, else screen as usual

With the exception of ssh agent-forwarding now being enabled by
default this works as before if no ~/.mutt/bin/setup-ssh-screen script
exists on the remote site.

If that script exists, it will take care of bringing the ssh-agent
to work inside the reattached screen session.

See http://www.stderr.nl/Blog/Software/Mutt/MuttRemoteAttachments.html
for the script and details and
http://samrowe.com/wordpress/ssh-agent-and-gnu-screen/ for the initial
idea.

11 years agoAdd alias isoxterm to get a legacy ISO-Latin xterm
Axel Beckert [Tue, 23 Nov 2010 00:29:44 +0000 (01:29 +0100)]
Add alias isoxterm to get a legacy ISO-Latin xterm

11 years agoSet some GIT environement variables for use with ssh -o 'SendEnv=GIT_*'
Axel Beckert [Thu, 11 Nov 2010 22:34:38 +0000 (23:34 +0100)]
Set some GIT environement variables for use with ssh -o 'SendEnv=GIT_*'

11 years agoAdd hash core=/var/log/core from corekeeper
Axel Beckert [Thu, 11 Nov 2010 02:55:21 +0000 (03:55 +0100)]
Add hash core=/var/log/core from corekeeper

11 years agoJust check for existence of directory instead of list of hostnames where it should...
Axel Beckert [Thu, 11 Nov 2010 02:54:50 +0000 (03:54 +0100)]
Just check for existence of directory instead of list of hostnames where it should exist

11 years agoUse for loop for /pub/debian-local hashed directories
Axel Beckert [Thu, 11 Nov 2010 02:53:50 +0000 (03:53 +0100)]
Use for loop for /pub/debian-local hashed directories

11 years agoAdd uc and lc aliases which call the identically named Perl functions
Axel Beckert [Fri, 5 Nov 2010 01:00:22 +0000 (02:00 +0100)]
Add uc and lc aliases which call the identically named Perl functions

11 years agoSync with grml-etc-core
Axel Beckert [Fri, 5 Nov 2010 00:35:53 +0000 (01:35 +0100)]
Sync with grml-etc-core

11 years agoMake rational-dot() also expand 'cd.' to 'cd ..'
Axel Beckert [Fri, 5 Nov 2010 00:24:23 +0000 (01:24 +0100)]
Make rational-dot() also expand 'cd.' to 'cd ..'

11 years agoComment out aliases suprseded by rational-dot()
Axel Beckert [Fri, 5 Nov 2010 00:23:05 +0000 (01:23 +0100)]
Comment out aliases suprseded by rational-dot()

11 years agoMove all cd stuff into its own file
Axel Beckert [Fri, 5 Nov 2010 00:15:33 +0000 (01:15 +0100)]
Move all cd stuff into its own file

11 years agoCosmetics for the wcd function
Axel Beckert [Thu, 4 Nov 2010 23:50:29 +0000 (00:50 +0100)]
Cosmetics for the wcd function

11 years agoFix syntax error
Axel Beckert [Thu, 4 Nov 2010 23:49:56 +0000 (00:49 +0100)]
Fix syntax error

11 years agoPrefix one more function listed together with aliases with 'function'
Axel Beckert [Thu, 4 Nov 2010 23:44:07 +0000 (00:44 +0100)]
Prefix one more function listed together with aliases with 'function'

Add some more indentation for columns, too.

11 years agoUnalias only if alias exists
Axel Beckert [Thu, 4 Nov 2010 23:39:44 +0000 (00:39 +0100)]
Unalias only if alias exists

11 years agoFix missing quoting
Axel Beckert [Thu, 4 Nov 2010 23:36:19 +0000 (00:36 +0100)]
Fix missing quoting

11 years agoAdd +0 function
Axel Beckert [Thu, 4 Nov 2010 23:31:58 +0000 (00:31 +0100)]
Add +0 function

11 years agoSupport autojump
Axel Beckert [Thu, 4 Nov 2010 23:27:30 +0000 (00:27 +0100)]
Support autojump

11 years agoAdd alias for aptitude search
Axel Beckert [Thu, 4 Nov 2010 23:14:42 +0000 (00:14 +0100)]
Add alias for aptitude search

11 years agoAdd wcd support if installed
Axel Beckert [Thu, 4 Nov 2010 23:13:29 +0000 (00:13 +0100)]
Add wcd support if installed

11 years agoSafeguard xd function due to xd not available in Lenny
Axel Beckert [Thu, 4 Nov 2010 23:02:58 +0000 (00:02 +0100)]
Safeguard xd function due to xd not available in Lenny

11 years agoReactivate lpr function
Axel Beckert [Thu, 4 Nov 2010 22:59:42 +0000 (23:59 +0100)]
Reactivate lpr function

Fix the bug which was the reason for deactivation

11 years agoPrefix functions listed together with aliases with 'function'.
Axel Beckert [Thu, 4 Nov 2010 22:39:40 +0000 (23:39 +0100)]
Prefix functions listed together with aliases with 'function'.

Also add some blanks for proper alignment.

11 years agoAlias df to df -TP | column -t
Axel Beckert [Thu, 4 Nov 2010 22:34:53 +0000 (23:34 +0100)]
Alias df to df -TP | column -t

11 years agoAdd mount without arguments as alias for mount | column -t
Axel Beckert [Thu, 4 Nov 2010 22:24:06 +0000 (23:24 +0100)]
Add mount without arguments as alias for mount | column -t

Function posted by carstenh on #debian.de.

11 years agoBe able to play tetris in zsh
Axel Beckert [Wed, 27 Oct 2010 10:23:09 +0000 (12:23 +0200)]
Be able to play tetris in zsh

11 years agoDocument how to use git submodules
Axel Beckert [Tue, 26 Oct 2010 16:34:39 +0000 (18:34 +0200)]
Document how to use git submodules

11 years agoWork with unmodified submodules where possible. Makes it easier to clone
Axel Beckert [Tue, 26 Oct 2010 16:13:04 +0000 (18:13 +0200)]
Work with unmodified submodules where possible. Makes it easier to clone

11 years agoMake prompt working again in Sid's zsh in combination with newest grml zshrc
Axel Beckert [Sat, 23 Oct 2010 08:43:35 +0000 (10:43 +0200)]
Make prompt working again in Sid's zsh in combination with newest grml zshrc

11 years agoSource original upstream zshrc instead of copying it
Axel Beckert [Sat, 23 Oct 2010 01:44:19 +0000 (03:44 +0200)]
Source original upstream zshrc instead of copying it

11 years agoSync with current grml zshrc
Axel Beckert [Sat, 23 Oct 2010 01:35:43 +0000 (03:35 +0200)]
Sync with current grml zshrc

11 years agoAdd grml-etc-core as submodule
Axel Beckert [Fri, 22 Oct 2010 23:39:49 +0000 (01:39 +0200)]
Add grml-etc-core as submodule

11 years agoalias assh -> function assh
Axel Beckert [Fri, 22 Oct 2010 23:29:42 +0000 (01:29 +0200)]
alias assh -> function assh

11 years agoAdd apt-cache showsrc aliases
Axel Beckert [Thu, 30 Sep 2010 00:08:47 +0000 (02:08 +0200)]
Add apt-cache showsrc aliases

11 years agoFix typo
Axel Beckert [Thu, 30 Sep 2010 00:06:21 +0000 (02:06 +0200)]
Fix typo

11 years agoAdd some apt-get/aptitude related aliases
Axel Beckert [Thu, 30 Sep 2010 00:05:09 +0000 (02:05 +0200)]
Add some apt-get/aptitude related aliases

11 years agoSome apt-file and apt-show-version shortcuts
Axel Beckert [Wed, 29 Sep 2010 23:55:54 +0000 (01:55 +0200)]
Some apt-file and apt-show-version shortcuts

11 years agoSUS a) doesn't need to be a _global_ alias, therefore b) no more uppercase, and c...
Axel Beckert [Thu, 2 Sep 2010 21:48:11 +0000 (23:48 +0200)]
SUS a) doesn't need to be a _global_ alias, therefore b) no more uppercase, and c) is even more useful as function

11 years agoCheck for GNU/Hurd before setting the stack limit
Axel Beckert [Mon, 2 Aug 2010 10:52:12 +0000 (10:52 +0000)]
Check for GNU/Hurd before setting the stack limit

11 years agoAdd some more hashes for /pub/debian-local/configs/$distribution plus /usr/share...
Axel Beckert [Tue, 27 Jul 2010 18:58:15 +0000 (20:58 +0200)]
Add some more hashes for /pub/debian-local/configs/$distribution plus /usr/share/doc/developers-reference

12 years agoCheck for existence of ~/sans/bin and ~/git/sans/bin and add them to the path if...
Axel Beckert [Tue, 15 Jun 2010 14:55:46 +0000 (16:55 +0200)]
Check for existence of ~/sans/bin and ~/git/sans/bin and add them to the path if they exist.

See http://git.sans.ethz.ch/?p=sans for details

12 years agodeactivate ssh agent forwarding, it doesn't work with reattached screens
Axel Beckert [Mon, 24 May 2010 23:55:37 +0000 (01:55 +0200)]
deactivate ssh agent forwarding, it doesn't work with reattached screens

12 years agoadd 'compdef asc=ssh' as suggested by jhr
Axel Beckert [Mon, 24 May 2010 23:49:44 +0000 (01:49 +0200)]
add 'compdef asc=ssh' as suggested by jhr

12 years agoDon't display the battery level inside Midnight Commander
Axel Beckert [Thu, 13 May 2010 23:29:55 +0000 (01:29 +0200)]
Don't display the battery level inside Midnight Commander

Midnight Commander doesn't support right justified prompt components.

12 years agoCheck for string 'No support for device type: battery' on STDERR
Axel Beckert [Wed, 14 Apr 2010 19:08:53 +0000 (21:08 +0200)]
Check for string 'No support for device type: battery' on STDERR

12 years agoFunction apt-rbdepends from #299228
Axel Beckert [Fri, 2 Apr 2010 15:22:50 +0000 (17:22 +0200)]
Function apt-rbdepends from #299228

12 years agoAdd line breaks and comments to XBROWSERS array
Axel Beckert [Sat, 27 Mar 2010 18:01:28 +0000 (19:01 +0100)]
Add line breaks and comments to XBROWSERS array

12 years agoReplace duplicate jemacs entry by jove, qemacs and vile
Axel Beckert [Sat, 27 Mar 2010 17:51:14 +0000 (18:51 +0100)]
Replace duplicate jemacs entry by jove, qemacs and vile

12 years agoAdd 'edit' to generic editors
Axel Beckert [Sat, 27 Mar 2010 17:42:45 +0000 (18:42 +0100)]
Add 'edit' to generic editors

12 years agoAdd line breaks and comments to EDITORS array
Axel Beckert [Sat, 27 Mar 2010 17:40:22 +0000 (18:40 +0100)]
Add line breaks and comments to EDITORS array

12 years agoAdd Opera and Chimera to list of preferred browsers.
Axel Beckert [Sat, 27 Mar 2010 17:36:01 +0000 (18:36 +0100)]
Add Opera and Chimera to list of preferred browsers.

12 years agoAdd Netsurf to list of preferred browsers. Raise preference of xlinks2
Axel Beckert [Sat, 27 Mar 2010 17:32:18 +0000 (18:32 +0100)]
Add Netsurf to list of preferred browsers. Raise preference of xlinks2

12 years agoChoose also emacsclient's alternate editor as $EDITOR itself
Axel Beckert [Sat, 27 Mar 2010 17:22:09 +0000 (18:22 +0100)]
Choose also emacsclient's alternate editor as $EDITOR itself

12 years agoChoose $EDITOR by checking which of the preferred browsers are installed
Axel Beckert [Sat, 27 Mar 2010 17:19:39 +0000 (18:19 +0100)]
Choose $EDITOR by checking which of the preferred browsers are installed

12 years agoChoose $BROWSER and $ABROWSER by checking which of the preferred browsers are installed
Axel Beckert [Sat, 27 Mar 2010 17:04:21 +0000 (18:04 +0100)]
Choose $BROWSER and $ABROWSER by checking which of the preferred browsers are installed