Skip to content

Commit

Permalink
Merge pull request #9 from gramtech/master
Browse files Browse the repository at this point in the history
Load /usr/local/bin/tree if exists or a use custom bash function
  • Loading branch information
sebastienrousseau authored Mar 21, 2018
2 parents c6f9999 + 89140b9 commit 33fd6f9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions bash/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,13 @@ function cd() {
}

# tree: Function to generates a tree view from the current directory
function tree(){
pwd
ls -R | grep ":$" | \
sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
}
if [ ! -e /usr/local/bin/tree ]; then
function tree(){
pwd
ls -R | grep ":$" | \
sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'
}
fi

# sshKeyGen: Function to generates SSH key
function sshKeyGen() {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reedia-dotfiles",
"version": "0.1.87",
"version": "0.1.89",
"description": "Dotfiles - A set of Mac OS X configuration files - Simply designed to fit your shell life.",
"keywords": [
"dotfiles",
Expand Down

0 comments on commit 33fd6f9

Please sign in to comment.