Skip to content

Instantly share code, notes, and snippets.

@shouhei
Last active February 29, 2016 11:34
Show Gist options
  • Save shouhei/142e0d996c46d3a17150 to your computer and use it in GitHub Desktop.
Save shouhei/142e0d996c46d3a17150 to your computer and use it in GitHub Desktop.
zsh functions
function fis()
{
find . -name "*.$1" | xargs grep -n $2
}
function kgrep (){
kill `pgrep -fl "$1" | awk '{print $1}'`
}
function paper()
{
open ./build/main.pdf
}
function papernize()
{
for FILE in `find . -name "*.tex"`
do
sed -ie 's/。/./g' $FILE
sed -ie 's/、/,/g' $FILE
rm "$FILE"e
done
}
function urlnize()
{
"file://"`pwd`"/"$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment