Permalink
Browse files

move library files to .smartcd/lib/core

This moves the bash_smartcd, bash_varstash, and bash_arrays files from
being directly in the user's home directory to being under .smartcd.
Additionally, the bash_ prefix was dropped, as this is not a bash-only
library.  This follows 48cb29c as part of a several-step process to
re-structure things to be more flexible.
  • Loading branch information...
cxreg committed Jan 8, 2012
1 parent 7197bd1 commit a1b8e13f6451f71e1bd9097f4c71e1a3024f7d25
Showing with 1,300 additions and 1,293 deletions.
  1. +10 −6 Makefile
  2. +5 −5 README
  3. +3 −1,266 bash_smartcd
  4. +8 −6 download-and-install
  5. +1 −1 bash_arrays → lib/core/arrays
  6. +1,264 −0 lib/core/smartcd
  7. +2 −2 bash_varstash → lib/core/varstash
  8. +1 −1 t/arrays.t
  9. +3 −3 t/smartcd.t
  10. +3 −3 t/varstash.t
View
@@ -16,15 +16,19 @@ test_all: test_bash test_zsh
install:
cp bash_arrays $(HOME)/.bash_arrays
cp bash_varstash $(HOME)/.bash_varstash
rm -rf $(HOME)/.smartcd/lib/core
mkdir -p $(HOME)/.smartcd/lib/core
cp -r lib/core $(HOME)/.smartcd/lib
cp bash_smartcd $(HOME)/.bash_smartcd
@echo "smartcd installed"
@echo "If this is your first time installing smartcd, run this following command:"
@echo
@echo " source ~/.bash_smartcd"
@echo "smartcd is now installed"
@echo
@echo "After you have done that, run \"smartcd config\" to configure your shell"
@echo "If this is your first time installing smartcd, run the following command:"
@echo
@echo " source ~/.smartcd/lib/core/smartcd"
@echo
@echo "After you have done that, run \`smartcd config\` to configure your shell"
setup:
@echo "\`make setup\` is deprecated, please run \`smartcd config\`"
View
10 README
@@ -41,7 +41,7 @@ OK, HOW DO I USE IT?
the source, you can:
make install
source ~/.bash_smartcd
source ~/.smartcd/lib/core/smartcd
smartcd config
However, if you would rather skip all that and simply have it install iself,
@@ -340,14 +340,14 @@ WHAT ELSE CAN IT DO?
cat my_smartcd_backup | smartcd import
For more complete documentation, see the documentation in bash_smartcd itself.
For more complete documentation, see the documentation in lib/core/smartcd.
OTHER LIBRARIES
VARSTASH
As already discussed, the included library bash_varstash provides several
As already discussed, the included library lib/core/varstash provides several
functions for saving values to a temporary location so that you can edit
them, and then later restore the original value.
@@ -394,7 +394,7 @@ OTHER LIBRARIES
set of supporting built-ins. In particular, I find myself missing the Perl
functions push, pop, shift, unshift, reverse.
To provide these capabilities, another library called bash_arrays is
To provide these capabilities, another library, lib/core/arrays, is
included. The provided functions are:
apush - Add an element to the end of your array
@@ -408,7 +408,7 @@ OTHER LIBRARIES
alen - Print the current number of elements in the array
acopy - Copy an array into a new variable
See documentation included in bash_arrays for more detail.
See documentation included in lib/core/arrays for more detail.
LICENSE
Oops, something went wrong.

0 comments on commit a1b8e13

Please sign in to comment.