]> git.mdlowis.com Git - projs/tide.git/commitdiff
added more documentation to edit man page
authorMichael D. Lowis <mike@mdlowis.com>
Mon, 27 Mar 2017 01:56:10 +0000 (21:56 -0400)
committerMichael D. Lowis <mike@mdlowis.com>
Mon, 27 Mar 2017 01:56:10 +0000 (21:56 -0400)
docs/edit.1
docs/edit.1.md

index e52261c7e06a91f63402b042eb03d220b78ae05b..fb9e9093e96fd0ea6cb0e5369ee1559179f8441d 100644 (file)
@@ -7,36 +7,32 @@
 \fBedit\fR \- convenience script for launching xedit(1) with a proper environment
 .
 .SH "SYNOPSIS"
-.
-.nf
-
-edit [file \.\.]
-.
-.fi
+\fBedit\fR [\fIfile\fR\.\.\.]
 .
 .SH "DESCRIPTION"
 This script acts as a wrapper around xedit(1)\. It is responsible for setting up the environment variables and loading the rc file xedit(1) before launching a new instance of xedit(1) for each file provided on the command line\. If no files are provided, xedit(1) will be launched to edit a scratch buffer\.
 .
 .SH "FILES"
 .
-.nf
-
-$HOME/\.config/edit/editrc
-    Shell script loaded in current environment to make shell functions and environment variables available to xedit(1)
-.
-.fi
+.SS "$HOME/\.config/edit/editrc"
+Shell script loaded in current environment to make shell functions and environment variables available to xedit(1)
 .
 .SH "ENVIRONMENT"
 .
-.nf
-
-PATH
-EDITRCFILE
-BASH_ENV
-DISPLAY
-EDITOR
+.SS "BASH_ENV"
+Set to same value as $EDITRCFILE so that the file is loaded as a bash script in the event that the user shell is bash(1)
+.
+.SS "DISPLAY"
+This variable is used to determine if we are running in an X11 environment\. If $DISPLAY is not set then the contents of the $EDITOR variable is used to determine what editor to launch in lieu of xedit(1)\. If $EDITOR is not set then vim(1) is launched instead\.
+.
+.SS "EDITRCFILE"
+Contains the path of the shell script which is loaded before xedit(1) to setup the environment and define shell functions which can be called during an editing session\.
+.
+.SS "EDITOR"
+Used as a fallback for when not running in an X11 system (xedit(1) is of course X11 only)\.
 .
-.fi
+.SS "PATH"
+The $PATH variable is modified in order to add $HOME/config/edit/tools/ to the path\. This folder is a standard location in which user scripts and tools can be placed so they can be used from within xedit(1) without cluttering up the normal system path\.
 .
 .SH "AUTHOR"
 Michael D\. Lowis
index ed5c056f825a1b37b1a4b7417f85e9efc923bff4..c495ff0359cee5038dd3739963de14e18b3c02e9 100644 (file)
@@ -2,7 +2,7 @@
 
 ## SYNOPSIS
 
-    edit [file ..]
+`edit` [<file>...]
 
 ## DESCRIPTION
 
@@ -13,17 +13,36 @@ are provided, xedit(1) will be launched to edit a scratch buffer.
 
 ## FILES
 
-    $HOME/.config/edit/editrc
-        Shell script loaded in current environment to make shell functions and environment variables available to xedit(1)
+### $HOME/.config/edit/editrc 
+Shell script loaded in current environment to make shell functions and environment variables available to xedit(1)
 
 ## ENVIRONMENT
     
-    BASH_ENV
-    DISPLAY
-    EDITRCFILE
-    EDITOR
-    PATH
-    
+### BASH_ENV
+Set to same value as $EDITRCFILE so that the file is loaded as a bash script in 
+the event that the user shell is bash(1)
+
+### DISPLAY
+This variable is used to determine if we are running in an X11 environment. If 
+$DISPLAY is not set then the contents of the $EDITOR variable is used to 
+determine what editor to launch in lieu of xedit(1). If $EDITOR is not set then 
+vim(1) is launched instead.
+
+### EDITRCFILE
+Contains the path of the shell script which is loaded before xedit(1) to setup 
+the environment and define shell functions which can be called during an editing
+session.
+
+### EDITOR
+Used as a fallback for when not running in an X11 system (xedit(1) is of course 
+X11 only).
+
+### PATH
+The $PATH variable is modified in order to add $HOME/config/edit/tools/ to the 
+path. This folder is a standard location in which user scripts and tools can be 
+placed so they can be used from within xedit(1) without cluttering up the normal
+system path.
+
 ## AUTHOR
 
 Michael D. Lowis