Diff
1diff --git a/plugins/bbedit/bbedit.plugin.zsh b/plugins/bbedit/bbedit.plugin.zsh
2new file mode 100644
3index 0000000000000000000000000000000000000000..6eec10f21fb98c7197d74491f158ee26d80c65e1
4--- /dev/null
5+++ b/plugins/bbedit/bbedit.plugin.zsh
6@@ -0,0 +1,21 @@
7+alias bbpb='pbpaste | bbedit --clean --view-top'
8+
9+alias bbd=bbdiff
10+
11+#
12+# If the bb command is called without an argument, launch BBEdit
13+# If bb is passed a directory, cd to it and open it in BBEdit
14+# If bb is passed a file, open it in BBEdit
15+#
16+function bb() {
17+ if [[ -z $1 ]]
18+ then
19+ bbedit --launch
20+ else
21+ bbedit $1
22+ if [[ -d $1 ]]
23+ then
24+ cd $1
25+ fi
26+ fi
27+}