From d3430030e946b426de034b8b84c6e254420aa20b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Sat, 6 Apr 2019 07:45:49 +0200 Subject: [PATCH] Fish: sorted config files --- shells/fish/conf.d/{emacs.fish => 00-emacs.fish} | 0 shells/fish/conf.d/{env.fish => 00-env.fish} | 7 +++---- shells/fish/conf.d/{abbr.fish => 10-abbr.fish} | 12 ++++++------ shells/fish/conf.d/{alias.fish => 10-alias.fish} | 0 shells/fish/conf.d/{nix.fish => 40-nix.fish} | 0 shells/fish/conf.d/{debian.fish => 60-debian.fish} | 0 shells/fish/conf.d/{x.fish => 99-x.fish} | 0 7 files changed, 9 insertions(+), 10 deletions(-) rename shells/fish/conf.d/{emacs.fish => 00-emacs.fish} (100%) rename shells/fish/conf.d/{env.fish => 00-env.fish} (94%) rename shells/fish/conf.d/{abbr.fish => 10-abbr.fish} (84%) rename shells/fish/conf.d/{alias.fish => 10-alias.fish} (100%) rename shells/fish/conf.d/{nix.fish => 40-nix.fish} (100%) rename shells/fish/conf.d/{debian.fish => 60-debian.fish} (100%) rename shells/fish/conf.d/{x.fish => 99-x.fish} (100%) diff --git a/shells/fish/conf.d/emacs.fish b/shells/fish/conf.d/00-emacs.fish similarity index 100% rename from shells/fish/conf.d/emacs.fish rename to shells/fish/conf.d/00-emacs.fish diff --git a/shells/fish/conf.d/env.fish b/shells/fish/conf.d/00-env.fish similarity index 94% rename from shells/fish/conf.d/env.fish rename to shells/fish/conf.d/00-env.fish index 73bb4b3..5024860 100644 --- a/shells/fish/conf.d/env.fish +++ b/shells/fish/conf.d/00-env.fish @@ -23,12 +23,11 @@ set -x ARCHFLAGS -arch_x86_64 set -e GPG_TTY set -Ux GPG_TTY (tty) -if test -z $EDITOR - set -Ux EDITOR es -end +set -e EDITOR +set -Ux EDITOR "emacsclient -"t if test -z $VISUAL - set -Ux VISUAL es + set -Ux VISUAL emacsclient -t end if test -z $GIT_EDITOR diff --git a/shells/fish/conf.d/abbr.fish b/shells/fish/conf.d/10-abbr.fish similarity index 84% rename from shells/fish/conf.d/abbr.fish rename to shells/fish/conf.d/10-abbr.fish index e5f9ce8..ce374a8 100644 --- a/shells/fish/conf.d/abbr.fish +++ b/shells/fish/conf.d/10-abbr.fish @@ -23,10 +23,10 @@ # See: https://fishshell.com/docs/current/commands.html#abbr if status --is-interactive - abbr --add --global l ls - abbr --add --global ping ping -c 3 mmk2410.org - abbr --add --global pingtest ping -c 3 mmk2410.org - abbr --add --global e eval $EDITOR - abbr --add --global g git - abbr --add --global s sudo + abbr --add l ls + abbr --add ping ping -c 3 mmk2410.org + abbr --add pingtest ping -c 3 mmk2410.org + abbr --add e eval $EDITOR + abbr --add g git + abbr --add s sudo end diff --git a/shells/fish/conf.d/alias.fish b/shells/fish/conf.d/10-alias.fish similarity index 100% rename from shells/fish/conf.d/alias.fish rename to shells/fish/conf.d/10-alias.fish diff --git a/shells/fish/conf.d/nix.fish b/shells/fish/conf.d/40-nix.fish similarity index 100% rename from shells/fish/conf.d/nix.fish rename to shells/fish/conf.d/40-nix.fish diff --git a/shells/fish/conf.d/debian.fish b/shells/fish/conf.d/60-debian.fish similarity index 100% rename from shells/fish/conf.d/debian.fish rename to shells/fish/conf.d/60-debian.fish diff --git a/shells/fish/conf.d/x.fish b/shells/fish/conf.d/99-x.fish similarity index 100% rename from shells/fish/conf.d/x.fish rename to shells/fish/conf.d/99-x.fish