Skip to content

Commit

Permalink
Add alias to go up N directories
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardolundgren committed Sep 9, 2014
1 parent cb71bf4 commit 6fe7c54
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions templates/.aliases
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# -- Server --------------------------------------------------------------------
alias server='open http://localhost:8000 && http-server -p 8000'
# -- Extras --------------------------------------------------------------------

# Server
alias server='open http://localhost:8000 && http-server -p 8000'

# Go up N directories
up() {
str=""
count=0
while [ "$count" -lt "$1" ];
do
str=$str"../"
let count=count+1
done
cd $str
}

0 comments on commit 6fe7c54

Please sign in to comment.