Compare commits

...

3 Commits

Author SHA1 Message Date
Yushun Cheng a18d2c285b [fish] Fix help command on Windows. 2022-04-06 21:09:22 +08:00
Yushun Cheng 97cc6ddd62 [firefox] Add firefox to PATH on Windows. 2022-04-06 21:04:07 +08:00
Yushun Cheng ff66646976 [emacs] Add fish-mode. 2022-04-06 20:54:45 +08:00
4 changed files with 12 additions and 0 deletions

View File

@ -428,3 +428,6 @@ Return the list updated."
:hook ((sh-mode) . (lambda () (setq indent-tabs-mode nil)))
:config
(setq sh-basic-offset 2))
;;; Fish.
(use-package fish-mode)

View File

@ -0,0 +1,3 @@
if test $CHEZMOI_OS = 'windows'
alias help="$BROWSER (cygpath -w '/usr/share/doc/fish/index.html')"
end

View File

@ -1,6 +1,11 @@
set FISH_CONFIG_HOME $XDG_CONFIG_HOME'/fish'
if status is-interactive
source $XDG_CONFIG_HOME/sh/aliases.sh
source $FISH_CONFIG_HOME'/aliases.fish'
alias spu='sudo-pacman-update'
fish_vi_key_bindings
end
set --erase FISH_CONFIG_HOME

View File

@ -77,6 +77,7 @@ fi
# Paths.
if [ "$CHEZMOI_OS" = 'windows' ]; then
PYTHON_VERSION=310
insert_path '/c/Program Files/Mozilla Firefox'
insert_path '/mingw64/bin'
insert_man '/mingw64/share/man'
insert_path '/c/Program Files/Python'${PYTHON_VERSION}