Will Fris's WordPress Weblog











{20101016 - \6\UTC\UTCk 41 \pm\10\16 \16\pm\10 288 \2010f \31\10\UTC \10\UTC\pm\Sat, 16 Oct 2010 22:30:42 +0000 2010}   recursively open all `webby`-files with vim

JaY, i can be even lazier with typing

Okay, it took a few minutes to figure out
but i now have a way to recursively open all `webby`-files
while typing only two letters
in my terminal/command-line/commandprompt/sli/shell/bash/sh/whatever…

To be able to do so i use two aliases
in my ~/.bash_aliases file( which gets sourced in my ~/.bashrc file ).
I use bash on ubuntu and do not yet know if this will work on other boxes…

`webby`-files can mean anything ofcourse, but at this moment it means the following for me:

files ending in : .phtml , .php , .css , .js or .htaccess

The two aliases in ~/.bash_aliases

alias web_files='find . -regex '\''.*\.\(php\|phtml\|css\|js\|htaccess\)'\'' '

alias vw='vim $( web_files )'

c’est tout .



et cetera
Follow

Get every new post delivered to your Inbox.