]> arthur.barton.de Git - ConfigScripts.git/log
ConfigScripts.git
13 years agoDon't read /var/lib/$ME/bash.bashrc in non-interactive shells
Alexander Barton [Wed, 21 Jul 2010 13:09:30 +0000 (15:09 +0200)]
Don't read /var/lib/$ME/bash.bashrc in non-interactive shells

13 years agoAdd GIT branch name to shell prompt, if in a repository directory
Alexander Barton [Wed, 21 Jul 2010 12:17:26 +0000 (14:17 +0200)]
Add GIT branch name to shell prompt, if in a repository directory

This patch changes the prompt format for displaying the current chroot
name as well: (<name>) -> [<name>]

14 years agoInitialize bash-completion of Mac OS X "Homebrew" package
Alexander Barton [Fri, 1 Jan 2010 10:00:33 +0000 (11:00 +0100)]
Initialize bash-completion of Mac OS X "Homebrew" package

14 years agoAdd /Developer/usr/bin as optional PATH component
Alexander Barton [Fri, 16 Oct 2009 10:44:43 +0000 (12:44 +0200)]
Add /Developer/usr/bin as optional PATH component

14 years agoSource /etc/bash_command_not_found, if available
Alexander Barton [Sun, 6 Sep 2009 14:55:06 +0000 (16:55 +0200)]
Source /etc/bash_command_not_found, if available

Source the file /etc/bash_command_not_found, if available, to initialize
the command-not-found Debian package.

14 years agoMake sure UID is always set
Alexander Barton [Sat, 5 Sep 2009 12:15:07 +0000 (14:15 +0200)]
Make sure UID is always set

14 years agoDon't source /etc/profile.d/*.csh scripts
Alexander Barton [Sat, 29 Aug 2009 21:54:24 +0000 (23:54 +0200)]
Don't source /etc/profile.d/*.csh scripts

14 years agoRewrap script line to 80 characters
Alexander Barton [Sat, 29 Aug 2009 21:54:01 +0000 (23:54 +0200)]
Rewrap script line to 80 characters

14 years agoOnly say "bye, bye" if this seems to be the "top" session
Alexander Barton [Mon, 24 Aug 2009 19:36:42 +0000 (21:36 +0200)]
Only say "bye, bye" if this seems to be the "top" session

Don't say "bye, bye" if the shell session has been invoked by sudo(8).

14 years agoSource /etc/bashrc from ~/.bashrc, if not already read in.
Alexander Barton [Mon, 6 Jul 2009 18:29:21 +0000 (20:29 +0200)]
Source /etc/bashrc from ~/.bashrc, if not already read in.

15 years agoDon't add locale encoding if the current locale is "C"
Alexander Barton [Wed, 8 Apr 2009 11:42:04 +0000 (13:42 +0200)]
Don't add locale encoding if the current locale is "C"

15 years agoMove Xauthority file to local storage, so that sudo et all work
Alexander Barton [Mon, 23 Mar 2009 22:25:29 +0000 (23:25 +0100)]
Move Xauthority file to local storage, so that sudo et all work

15 years agoImplement "intelligent" locale setting
Alexander Barton [Mon, 23 Mar 2009 21:51:24 +0000 (22:51 +0100)]
Implement "intelligent" locale setting

Set the locale if it is not set or doesn't contain a dot;
but all system messages should still be in "native" ("C") language.

15 years agoUpdate copyright notice and file information text
Alexander Barton [Mon, 23 Mar 2009 21:50:58 +0000 (22:50 +0100)]
Update copyright notice and file information text

15 years agoUpdate copyright notice and file information text
Alexander Barton [Mon, 23 Mar 2009 21:50:04 +0000 (22:50 +0100)]
Update copyright notice and file information text

15 years agosys/profile, user/bash_profile: code cleanup
Alexander Barton [Mon, 23 Mar 2009 21:47:30 +0000 (22:47 +0100)]
sys/profile, user/bash_profile: code cleanup

- use ~/.ConfigScripts.debug as debug mode trigger,
- read in ~/.bash_profile.user
- eliminate a log of too specific code from user/bash_profile.

15 years agosys/bashrc, user/bashrc: code cleanup
Alexander Barton [Mon, 23 Mar 2009 21:45:38 +0000 (22:45 +0100)]
sys/bashrc, user/bashrc: code cleanup

- use ~/.ConfigScripts.debug as debug mode trigger,
- read in ~/.bashrc.user
- move a lot of generic code to sys/bashrc,
- eliminate a log of too specific code from user/bashrc.

15 years agoUpdated copyright notice
Alexander Barton [Mon, 23 Mar 2009 21:38:24 +0000 (22:38 +0100)]
Updated copyright notice

15 years agoDetect root user correctly, even when using NIS.
Alexander Barton [Mon, 5 Jan 2009 16:05:35 +0000 (17:05 +0100)]
Detect root user correctly, even when using NIS.

15 years agoMove .Xauthority to /tmp and export $XAUTHORITY
Alexander Barton [Mon, 5 Jan 2009 15:59:03 +0000 (16:59 +0100)]
Move .Xauthority to /tmp and export $XAUTHORITY

This solves permission problems when $HOME is located on NFS, sudo is
used, and the root user is not allowed to access the user home directory.

15 years agoNew function Config_RootUser() to copy files into $HOME of root user.
Alexander Barton [Mon, 5 Jan 2009 15:11:53 +0000 (16:11 +0100)]
New function Config_RootUser() to copy files into $HOME of root user.

15 years agoMove install code to Config_System() and Config_User() functions.
Alexander Barton [Mon, 5 Jan 2009 15:07:29 +0000 (16:07 +0100)]
Move install code to Config_System() and Config_User() functions.

15 years agoRemove "in-file history".
Alexander Barton [Thu, 27 Nov 2008 09:58:22 +0000 (10:58 +0100)]
Remove "in-file history".

15 years agoUse "printf" instead of "echo".
Alexander Barton [Wed, 26 Nov 2008 19:12:25 +0000 (20:12 +0100)]
Use "printf" instead of "echo".

15 years agoUse "printf" instead of "echo -ne"
Alexander Barton [Wed, 26 Nov 2008 19:08:32 +0000 (20:08 +0100)]
Use "printf" instead of "echo -ne"

15 years agoRead global files from $HOME/.etc if we can't install to /etc.
Alexander Barton [Fri, 21 Nov 2008 09:40:46 +0000 (10:40 +0100)]
Read global files from $HOME/.etc if we can't install to /etc.

15 years agobash completion: read it from /opt/local/etc/bash_completion, too.
Alexander Barton [Fri, 21 Nov 2008 09:39:56 +0000 (10:39 +0100)]
bash completion: read it from /opt/local/etc/bash_completion, too.

15 years agoEnhance debug messages: print a line for each script.
Alexander Barton [Fri, 21 Nov 2008 09:38:04 +0000 (10:38 +0100)]
Enhance debug messages: print a line for each script.

If the file "/tmp/ConfigDebug.$USER" exists, all the scripts print out a
line with its name when run.

15 years agoUse Msg() function to output console messages.
Alexander Barton [Mon, 20 Oct 2008 22:09:12 +0000 (00:09 +0200)]
Use Msg() function to output console messages.

The Msg() function abstracts diffenences in the echo(1) command and
shell built-in functions. This implementation always calls /bin/echo ...

15 years agoTest if user home directory is writeable.
Alexander Barton [Mon, 20 Oct 2008 22:04:58 +0000 (00:04 +0200)]
Test if user home directory is writeable.

The user home directoty can be un-writable when it is mounted using
NFS, for example.

15 years agoOnly set $LANG variable when it is not set already.
Alexander Barton [Mon, 20 Oct 2008 22:03:09 +0000 (00:03 +0200)]
Only set $LANG variable when it is not set already.

15 years agoNew alias bblack() and function BLACK() to blacklist IP addresses.
Alexander Barton [Sun, 19 Oct 2008 20:08:58 +0000 (22:08 +0200)]
New alias bblack() and function BLACK() to blacklist IP addresses.

15 years agoInstall user/bash_profile as $HOME/.profile, if this file exists
Alexander Barton [Thu, 7 Aug 2008 16:58:16 +0000 (18:58 +0200)]
Install user/bash_profile as $HOME/.profile, if this file exists

15 years agoMake sure that $UID is set.
Alexander Barton [Thu, 7 Aug 2008 16:56:37 +0000 (18:56 +0200)]
Make sure that $UID is set.

15 years agoOnly try to make backups if the destination file already exists.
Alexander Barton [Thu, 7 Aug 2008 16:55:42 +0000 (18:55 +0200)]
Only try to make backups if the destination file already exists.

15 years agoInitial import into GIT repository.
Alexander Barton [Thu, 7 Aug 2008 11:40:32 +0000 (13:40 +0200)]
Initial import into GIT repository.