Skip to content

Commit

Permalink
Merge remote-tracking branch 'cxreg/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
daotoad committed Sep 10, 2017
2 parents 94e6bd8 + afc18ef commit c166342
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CNAME
@@ -0,0 +1 @@
smartcd.org
4 changes: 3 additions & 1 deletion README.md
@@ -1,5 +1,7 @@
# smartcd - make your shell come alive

[![Join the chat at https://gitter.im/cxreg/smartcd](https://badges.gitter.im/cxreg/smartcd.svg)](https://gitter.im/cxreg/smartcd?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

## WHAT IS SMARTCD?

smartcd is a library for bash and zsh which brings transformative power
Expand Down Expand Up @@ -87,7 +89,7 @@ These are just a few examples of problems people are solving with smartcd.

echo 'autostash PATH=__PATH__/temporary/path:$PATH' | smartcd edit enter

which also highlights a convenient feature that replaces __PATH__ with the
which also highlights a convenient feature that replaces `__PATH__` with the
directory name before the script is run.

If you like doing things by hand, you may prefer
Expand Down
1 change: 1 addition & 0 deletions _config.yml
@@ -0,0 +1 @@
theme: jekyll-theme-minimal
3 changes: 2 additions & 1 deletion lib/core/smartcd_export
Expand Up @@ -20,7 +20,8 @@ function smartcd_export() {
# Skip directories never created
if [[ -d "$base/$dir" ]]; then
for entry in "$base/$dir/"*; do
local fn="${entry##*/}"
# Get filename, with trailing space from $entry removed (zsh).
local fn="${${entry%/}##*/}"
if [[ -f "$entry" ]]; then
echo "@ $dir/$fn"
local line=
Expand Down
2 changes: 1 addition & 1 deletion lib/core/smartcd_template
Expand Up @@ -32,7 +32,7 @@ function smartcd_template() {

command mkdir -p "$base/templates"
if [[ ! -f "$base/templates/$name" ]]; then
command cat <<EOF >> "$base/templates/$name"
command cat <<EOF > "$base/templates/$name"
########################################################################
# This is a smartcd template. Edit this file to create a named
# configuration you can copy to any number of directories. This is
Expand Down

0 comments on commit c166342

Please sign in to comment.