Topic Contributors
creator avatar  
mreschke
Matthew Reschke
Site Developer
Created: Jan 8th, 2010
Updated: Mar 5th, 2012
File
Download Selected (zip)
Download Selected (tar.gz)
Edit
Select All
Select None
View
Detail
Detail Preview
Icons
Preview
Show Hidden
Hide Hidden
Full Manager
Reset Defaults
icon
initial.sh
Open In New Tab
Open In New Window
List Archive Contents
Download File
Open
Download Folder (as .zip)
Public Curl Installers
Post # 172 permalink Topic #172 by mreschke on 2010-01-08 16:12:19 (viewed 575 times)

Exclamation3
This is obsolete
Though it still works and the bash scripts are still updated, but there is a newer way to add my profile to your system. I now use manup, the generic unix package manager for my profiles.

I find it very useful to keep lots of information here on my wiki, but also on my local computer. There \
are several articles around this wiki that have a curl flag like {curl.something} and {/curl.something}
These flags are used for curl to parse out certain information through a command line. This page contains all installers...

Organization[-][- -][++]

I like all my reference commands to be accessible as root and normal user, so I install everything to /etc/nwq/profiles/* and source it through each users ~/.bashrc.

For convenience, mreschke curl aliases start with mr.

First Time Setup[-][- -][++]

Run this for all the users on your system (so login as each user, including root, and run this)

BASH Code Snippet
echo "source /etc/nwq/profiles/profile" >> ~/.bashrc
 

Login to terminal as ROOT, and run this command

BASH Code Snippet
wget http://mreschke.com/files/172/initial.sh && chmod a+x initial.sh && ./initial.sh && rm ./initial.sh
 

Install Aliases[-][- -][++]

See the wiki article at Public Shell Profile

Sets up your bash aliases (to a list of my favorites)
Run only once as root user

BASH Code Snippet
echo "alias mr.aliaspublic-update=\"wget -O /etc/nwq/profiles/alias.public http://mreschke.com/files/86/alias.linux.sh; source /etc/nwq/profiles/profile\"" >> /etc/nwq/profiles/alias.master
source /etc/nwq/profiles/profile
mr.aliaspublic-update
 

Install Functions[-][- -][++]

See the wiki article at Public Shell Profile

Sets up your bash aliases (to a list of my favorites)
Run only once as root user

BASH Code Snippet
echo "alias mr.functionpublic-update=\"wget -O /etc/nwq/profiles/functions.public http://mreschke.com/files/86/functions.linux.sh; source /etc/nwq/profiles/profile\"" >> /etc/nwq/profiles/alias.master
source /etc/nwq/profiles/profile
mr.functionpublic-update
 

Install Prompts[-][- -][++]

See the wiki article at Public Shell Profile

Sets up your bash prompts (to a list of my favorites)
Run only once as root user

BASH Code Snippet
echo "alias mr.prompt-update=\"wget -O /etc/nwq/profiles/prompt http://mreschke.com/files/86/prompt.linux.sh; source /etc/nwq/profiles/profile\"" >> /etc/nwq/profiles/alias.master
source /etc/nwq/profiles/profile
mr.prompt-update
 

Install Favorite Commands (favcom)[-][- -][++]

See the wiki article at Favorite Linux Commands

Sets up my favcom (Favorite Linux Commands) cheat sheet on your local computer to access anytime with \
the simple command 'mr.favcom'. You can update your cheat sheet to my repository with 'mr.favcom-update'

Run only once as root user

BASH Code Snippet
echo "alias mr.favcom='less /etc/nwq/favcom.ref'" >> /etc/nwq/profiles/alias.master
echo "alias mr.favcom-update=\"wget -O /etc/nwq/favcom.ref http://mreschke.com/files/25/favcom.txt; source /etc/nwq/profiles/profile\"" >> /etc/nwq/profiles/alias.master
source /etc/nwq/profiles/profile
mr.favcom-update
 

Old Stuff[-][- -][++]

Old stuff, when I used the curl tags and parsed web output with awk

Old Install Aliases (DO NOT USE)

BASH Code Snippet
echo "alias mr.aliaspublic-update=\"curl -s http://mreschke.com/topic/86 | awk -F'{curl.linuxalias}' -v RS='{/curl.linuxalias}' 'RT{print \\\$NF}' > /etc/mreschke/alias.public ; mr.cleancurl /etc/mreschke/alias.public ; source /etc/mreschke/profile\"" >> /etc/mreschke/alias.master
source /etc/mreschke/profile
mr.aliaspublic-update
source /etc/mreschke/profile
 

Old Install Functions (DO NOT USE)

Code Snippet
echo "alias mr.functionpublic-update=\"curl -s http://mreschke.com/topic/86 | awk -F'{curl.linuxfunction}' -v RS='{/curl.linuxfunction}' 'RT{print \\\$NF}' > /etc/mreschke/functions.public ; mr.cleancurl /etc/mreschke/functions.public ; source /etc/mreschke/profile\"" >> /etc/mreschke/alias.master
source /etc/mreschke/profile
mr.functionpublic-update
source /etc/mreschke/profile

Old Install Prompt (DO NOT USE)

BASH Code Snippet
echo "alias mr.prompt-update=\"curl -s http://mreschke.com/topic/86 | awk -F'{curl.linuxprompt}' -v RS='{/curl.linuxprompt}' 'RT{print \\\$NF}' > /etc/mreschke/prompt ; mr.cleancurl /etc/mreschke/prompt ; source /etc/mreschke/profile\"" >> /etc/mreschke/alias.master
source /etc/mreschke/profile
mr.prompt-update
source /etc/mreschke/profile
 

Old Install Favcom (DO NOT USE)

BASH Code Snippet
echo "alias mr.favcom='less /etc/mreschke/favcom.ref'" >> /etc/mreschke/alias.master
echo "alias mr.favcom-update=\"curl -s http://mreschke.com/topic/25 | awk -F'{curl.favcom}' -v RS='{/curl.favcom}' 'RT{print \\\$NF}' > /etc/mreschke/favcom.ref ; mr.cleancurl /etc/mreschke/favcom.ref\"" >> /etc/mreschke/alias.master
source /etc/mreschke/profile
mr.favcom-update