Skip to content

Commit

Permalink
shells: fish: Condition emacs abbreviations on presence of DISPLAY
Browse files Browse the repository at this point in the history
  • Loading branch information
veracioux committed Jan 9, 2024
1 parent 9b9cee5 commit efa04b7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shells.org
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,11 @@ abbreviations for equivalent apt operations.
**** Miscellaneous
#+begin_src fish
conditional_abbr -g g 'git'
conditional_abbr -g e 'myemacs -c'
if [ -n "$DISPLAY" ]
conditional_abbr -g e 'myemacs -c'
else
conditional_abbr -g e 'myemacs'
end
conditional_abbr -g E 'myemacs'
conditional_abbr -g s 'sudo'
conditional_abbr -g py 'python'
Expand Down

0 comments on commit efa04b7

Please sign in to comment.