Skip to content

Commit

Permalink
add which alias function
Browse files Browse the repository at this point in the history
  • Loading branch information
Machyne committed Apr 14, 2016
1 parent 07dea90 commit fdbf489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion bash/bash_aliases
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ alias py3='python3'

# other
alias notrailspace="awk '{gsub(/ +$/,\"\")} {print \$0}'"
alias pdfocr="ruby ~/$TOOLS/pdfocr.rb"
alias plz="history | tail -n 2 | colrm 1 7 | head -n 1 | sudo bash"
alias sd="subl ."

Expand Down
4 changes: 4 additions & 0 deletions bash/bash_functions
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ mgd() {
mongod --dbpath $folder --logpath db/log.txt --port $port --logappend --fork
}

awhich() {
alias | grep "alias $1="
}

up() {
if [ -z "$1" ]; then
cd ..
Expand Down

0 comments on commit fdbf489

Please sign in to comment.