From 7d50d0ee4bef1efd21a56c3fbf6c3cf54cf56b6b Mon Sep 17 00:00:00 2001 From: punkfairie <23287005+punkfairie@users.noreply.github.com> Date: Tue, 6 Feb 2024 18:49:23 -0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Location=20aliases?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fish/aliases.config.fish | 11 ++++++++++- fish/settings.config.fish | 5 +++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/fish/aliases.config.fish b/fish/aliases.config.fish index 7e8e9d7..c6e615c 100644 --- a/fish/aliases.config.fish +++ b/fish/aliases.config.fish @@ -11,7 +11,16 @@ abbr -a v --position command "$EDITOR" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # Location aliases. -abbr -a hack --position command "cd ~/hackin" +abbr -a hack --position command "cd $HACK" +abbr -a dotf --position command "cd $DOT" +abbr -a dote --position command "cd $DOT && $EDITOR" + +abbr -a nvdir --position command "cd $NVIM" +abbr -a nved --position command "cd $NVIM && $EDITOR" +abbr -a nvl --position command "cd $NVLUA" +abbr -a nvled --position command "cd $NVLUA && $EDITOR" +abbr -a nvc --position command "cd $NVCUSTOM" +abbr -a nvced --position command "cd $NVCUSTOM && $EDITOR" # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/fish/settings.config.fish b/fish/settings.config.fish index 73b5f91..ccd2872 100644 --- a/fish/settings.config.fish +++ b/fish/settings.config.fish @@ -3,6 +3,11 @@ # Projects dir. set -gx HACK "$HOME/hackin" +# Neovim dirs. +set -gx NVIM "$HOME/.config/nvim" +set -gx NVLUA "$HOME/.config/nvim/lua" +set -gx NVCUSTOM "$HOME/.config/nvim/lua/custom" + # Editor. set -gx EDITOR nvim set -gx VISUAL "$EDITOR"