commit 431b8e2697686442c2e55a23d9d389e878f8a69b
parent 119d4fd381c97d39be575ac26056418d40dc16af
Author: Vincent Demeester <vincent@sbr.pm>
Date: Wed, 16 Nov 2022 16:36:15 +0100
zsh: add a in-emacs alias for find-file
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/users/vincent/core/zsh.nix b/users/vincent/core/zsh.nix
@@ -77,6 +77,10 @@ in
alias -s org=emacs
(( $+commands[jq] )) && alias -g MJ="| jq -C '.'" || alias -g MJ="| ${pkgs.python3}/bin/python -mjson.tool"
(( $+functions[zshz] )) && compdef _zshz j
+ [[ -n $INSIDE_EMACS ]] && \
+ function ff () {
+ print "\e]51;Efind-file $(readlink -f $1)\e\\"
+ }
'';
loginExtra = ''
# export GOPATH=${config.home.homeDirectory}