Add slugify bash alias
This commit is contained in:
parent
6f00c3e9b1
commit
07cc4dd5f8
@ -56,6 +56,7 @@ alias take='sudo chown $(whoami):$(whoami) '
|
|||||||
alias simple-http-server='python3 -m http.server'
|
alias simple-http-server='python3 -m http.server'
|
||||||
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
alias numfiles='find . -maxdepth 1 -type f | wc -l'
|
||||||
alias deepgrep='find . -type d -name "node_modules" -prune -o -type f -not -name "*.swp" -not -name "*.pyc" | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
alias deepgrep='find . -type d -name "node_modules" -prune -o -type f -not -name "*.swp" -not -name "*.pyc" | sed "s/$/\"/g" | sed "s/^/\"/g" | xargs grep --color '
|
||||||
|
alias slugify="sed -e 's/[^[:alnum:]]/-/g' | tr -s '-' | tr A-Z a-z"
|
||||||
|
|
||||||
# Show list of git branches
|
# Show list of git branches
|
||||||
alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r'
|
alias git-br='for k in `git branch|perl -pe s/^..//`; do echo -e ` git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user