Load fish aliases
This commit is contained in:
parent
cc5bc1c236
commit
f534cc706f
2 changed files with 27 additions and 0 deletions
24
aliases.org
Normal file
24
aliases.org
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#+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
|
||||
|
|
@ -60,6 +60,9 @@ fish_vi_key_bindings
|
|||
|
||||
# Initialize starship prompt
|
||||
starship init fish | source
|
||||
|
||||
# Load aliases if they exist
|
||||
test -f ~/.config/fish/aliases.fish && source ~/.config/fish/aliases.fish
|
||||
#+end_src
|
||||
|
||||
*** Mode Prompt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue