Subnet gives the subnet of the main network you are on (usually your NAT number). But that'll be moot once Mavericks is here and we have an approved way to set tags.Ĭonsole searches your console for text. Alternatively it's sometimes easier to use the openmeta shell tool. It's pretty useful combined with some complicated grep and find commands. Now it uses Applescript to tell the Finder to set the comment. Originally it was quite different till I got burnt by the Spotlight and Finder not being in sync. It's still useful, but it's merely doing a Spotlight query. You'd think they'd all be the same but they aren't always if the comment isn't set by the Finder. Lsfcom doesn't work too well due to there being some lack of true sync between where the Finder stores its comments and where Spotlight does. It's pretty easy to switch to your own text editor of choice (Textmate, Chocolat, Sublime Text, Vim, etc.) So you could do bbfind "open*.py" and it'd open all the files that matched open*.py. Useful enough I have it in Keyboard Maestro as well.ībfind finds files that match a pattern in the current directory and opens them up in BBEdit. Give it a list of applications and it'll start them all up. (I've not tried it in Mavericks) It returns the selected items in the Finder which you can then pipe through various unix commands. Selected is a bit buggy due to a bug in Leopard through Mountain Lion that inexplicably Apple hasn't fixed. It's useful in your scripts to provide feedback. Nm is a shortcut to send the Notification Manager some text. I have a Keyboard Maestro shortcut that does the same thing. Urlencode gives you a string as an url encoded string. I use this during development work to remove too much data. is just as easy.Įmptytrash is a way to delete everything in all trashes including files the Finder might be struggling with. finder does that for the current directory although I rarely use it. Safari is a shortcut to open a file with Safari. It's very useful when commenting up a set of directories you are compressing and sending to someone else or just backing up for some reason. Mytree is a useful one, giving you a tree display of the current directory and below opened in BBEdit. If you get duplicates listed in the open dictionaries in the Applescript editor or with the Open With menu in the Finder this fixes it. I'm not sure why I put that in the profile. Loadprofile loads up the profile if I've made any changes to it.įixopenwith rebuilds the Launch Services database. If you don't use BBEdit for coding don't worry about it. The bbtags stuff is for setting ctag information for BBEdit. Ql does a quickview of a file akin to opening it with the space key in the Finder. dirs just lists directories and is quite useful. The main one I use all the time is ll which lists is column format with all files displayed. The ls variations just are shortcuts to different displays of the directory. I used that in various scripts and also to keep the kids from getting on my machine. Suspend puts the computer to sleep and exists to the login screen although any programs you had running are still running. Ignoring the lines setting bash settings I have the following. bash_profile? There's a lot and most have comments. Which ones? You mean the functions in my. #ip shows ip addresses for eth0, eth1 and externalĮcho -e "Ethernet:\t `ipconfig getifaddr en0 2> /dev/null`"Įcho -e "WiFi:\t\t `ipconfig getifaddr en1 2> /dev/null`"Įcho -e "External:\t `curl -s ` | `grep -o '*.*.*.*'`" Set folderPath to (path to desktop folder as alias) Set folderPath to (folder of the front window as alias) # Change Directory to the active Finder window (else ~/Desktop) Export HISTIGNORE="ls:exit:df:w:h:ll:apollo:top"Įxport PAGER="col -b | vim -R -c 'set ft=man nomod nolist' -"Įxport PATH=$PATH:/opt/local/bin:/opt/local:/opt/local/sbinĮxport MANPATH=$MANPATH:/opt/local/share/man
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |