From 57720a354df2bd1f08752fefd06b989e8a7b1b0d Mon Sep 17 00:00:00 2001 From: root Date: Sun, 29 Jan 2012 20:30:18 -0500 Subject: [PATCH] added a recustom macro for copying my personal aliases into the custom folder. tedious to keep typing that. also added some debugging text, and did something useful to generate aliases that i don't remember. root is a dizzying power to have. --- scripts/core/generate_aliases.pl | 40 +++++++++---------- .../custom_overrides/fred/fred_common.alias | 6 +++ 2 files changed, 26 insertions(+), 20 deletions(-) diff --git a/scripts/core/generate_aliases.pl b/scripts/core/generate_aliases.pl index e8ef595f..a413d894 100644 --- a/scripts/core/generate_aliases.pl +++ b/scripts/core/generate_aliases.pl @@ -1,25 +1,25 @@ #!/usr/bin/perl -############################################################################### -# # -# Name : generate_aliases # -# Author : Chris Koeritz # -# Rights : Copyright (C) 1996-$now by Author # -# # -# Purpose: # -# # -# This script generates YETI alias files. Alias files contain a list of # -# definitions for command aliases that are written in the specified shell # -# dialect (such as bash or perl) and which are additionally tailored for the # -# operating system to be used. # -# # -############################################################################### -# This program is free software; you can redistribute it and/or modify it # -# under the terms of the GNU General Public License as published by the Free # -# Software Foundation; either version 2 of the License or (at your option) # -# any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a # -# version of the License. Please send any updates to "fred@gruntose.com". # -############################################################################### +############## +# +# Name : generate_aliases +# Author : Chris Koeritz +# Rights : Copyright (C) 1996-$now by Author +# +# Purpose: +# +# This script generates YETI alias files. Alias files contain a list of +# definitions for command aliases that are written in the specified shell +# dialect (such as bash or perl) and which are additionally tailored for the +# operating system to be used. +# +############## +# This program is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2 of the License or (at your option) +# any later version. See: "http://www.gruntose.com/Info/GNU/GPL.html" for a +# version of the License. Please send any updates to "fred@gruntose.com". +############## require "importenv.pl"; diff --git a/scripts/examples/custom_overrides/fred/fred_common.alias b/scripts/examples/custom_overrides/fred/fred_common.alias index 94fbaf1a..d2858360 100644 --- a/scripts/examples/custom_overrides/fred/fred_common.alias +++ b/scripts/examples/custom_overrides/fred/fred_common.alias @@ -2,9 +2,15 @@ # some aliases that i don't expect very many people to ever want. they are # based on some of the mount configurations available at home or abroad. +# moo and unmoo mount the local folders i use most. alias moo='check_mount /z/stuffing ; check_mount /z/walrus ; check_mount /z/chunky ' alias unmoo='umount /z/stuffing ; umount /z/walrus ; umount /z/chunky ' +# cleans up the ownership for all my files. alias refred='(chown -R fred:fred /home/fred /usr/local/games /home/archives /fatty /clutterato /var/spool/mail/fred ; normal_perm /var/log )' +# redoes my custom scripts. kind of a bummer if i mistakenly made +# modifications in the un-saved custom directory itself. +alias recustom='cpdiff $FEISTY_MEOW_SCRIPTS/examples/custom_overrides/fred $FEISTY_MEOW_SCRIPTS/custom' + -- 2.34.1