From fe7faa4ad57996f3ef7aeebedbafbe018bf0af34 Mon Sep 17 00:00:00 2001 From: serxoz Date: Thu, 11 Aug 2022 18:37:25 +0200 Subject: [PATCH] fish config --- fish/clean.sh | 3 +++ fish/conf.d/aliases.fish | 11 +++++++++++ fish/install.sh | 4 ++++ 3 files changed, 18 insertions(+) create mode 100644 fish/clean.sh create mode 100644 fish/conf.d/aliases.fish create mode 100644 fish/install.sh diff --git a/fish/clean.sh b/fish/clean.sh new file mode 100644 index 0000000..08909d7 --- /dev/null +++ b/fish/clean.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +rm -rf ~/.config/fish/conf.d diff --git a/fish/conf.d/aliases.fish b/fish/conf.d/aliases.fish new file mode 100644 index 0000000..e94061b --- /dev/null +++ b/fish/conf.d/aliases.fish @@ -0,0 +1,11 @@ +# Nvim and vim aliases +if command -qv nvim + alias v 'nvim' + alias vi 'nvim' + alias vim 'nvim' + alias nvi 'nvim' +else + alias v 'vim' + alias vi 'vim' + alias nvi 'vim' +end diff --git a/fish/install.sh b/fish/install.sh new file mode 100644 index 0000000..aaf4ea5 --- /dev/null +++ b/fish/install.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +rm -rf ~/.config/fish/conf.d +ln -s $HOME/dotfiles/fish/conf.d $HOME/.config/fish/conf.d