25 lines
554 B
Org Mode
25 lines
554 B
Org Mode
|
|
#+PROPERTY: header-args :mkdirp yes
|
||
|
|
#+title: Fish Aliases
|
||
|
|
|
||
|
|
* System-Specific Aliases
|
||
|
|
Generate aliases based on system type.
|
||
|
|
|
||
|
|
#+name: system-check
|
||
|
|
#+begin_src emacs-lisp :results raw
|
||
|
|
(if (eq system-type 'darwin)
|
||
|
|
"set -g IS_MAC 1"
|
||
|
|
"set -g IS_MAC 0")
|
||
|
|
#+end_src
|
||
|
|
|
||
|
|
#+begin_src fish :tangle ~/.config/fish/aliases.fish :noweb yes
|
||
|
|
# Generated from aliases.org - do not edit directly
|
||
|
|
<<system-check>>
|
||
|
|
|
||
|
|
# System-specific aliases
|
||
|
|
if test $IS_MAC -eq 0
|
||
|
|
function zed-start
|
||
|
|
steam-run /usr/local/bin/zed.app/Contents/MacOS/Zed
|
||
|
|
end
|
||
|
|
end
|
||
|
|
#+end_src
|