« get me outta code hell

zsh: 'subl' alias - dotfiles - Miscellaneous configuration files of my personal use
about summary refs log tree commit diff
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-05-16 10:40:37 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-05-16 10:41:32 -0300
commitd0a79c3716d643fa1e936434fc00a0de88d42983 (patch)
tree0baa58aa1e3884a9d8b23495fefe89ddf789f88a
parent87f77e545ff803727397c567b1f0866a27178d29 (diff)
zsh: 'subl' alias
-rw-r--r--.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 07f6245..e185d87 100644
--- a/.zshrc
+++ b/.zshrc
@@ -139,6 +139,10 @@ relink() {
 
 # -- hooks into third-party stuff --
 
+if [[ -v DEVICE_HAS_SUBLIME_TEXT ]]; then
+  alias subl='open -a "$DEVICE_SUBLIME_TEXT_INSTALLATION"'
+fi
+
 if [[ -v DEVICE_HAS_VIM ]]; then
   vimhelp() {
     vim -c ":h $1 | only"