From c951dde93057f0fbbd42d526b0e5545c851b3479 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Thu, 27 Jul 2023 10:33:32 +0300 Subject: [PATCH] feat(config): fig init scripts --- base/bashrc | 5 +++++ base/zshrc | 5 +++++ ssh/config | 3 +++ 3 files changed, 13 insertions(+) diff --git a/base/bashrc b/base/bashrc index eadf101..6e3fe94 100644 --- a/base/bashrc +++ b/base/bashrc @@ -1,3 +1,5 @@ +# Fig pre block. Keep at the top of this file. +[[ -f "$HOME/.fig/shell/bashrc.pre.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.pre.bash" # this is my bashrc config. there are many like it, but this one is mine. # shellcheck shell=bash @@ -21,3 +23,6 @@ x-load-configs ssh-add -A 2>/dev/null; [ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash ] && source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.bash + +# Fig post block. Keep at the bottom of this file. +[[ -f "$HOME/.fig/shell/bashrc.post.bash" ]] && builtin source "$HOME/.fig/shell/bashrc.post.bash" diff --git a/base/zshrc b/base/zshrc index e80c659..b245331 100644 --- a/base/zshrc +++ b/base/zshrc @@ -1,3 +1,5 @@ +# Fig pre block. Keep at the top of this file. +[[ -f "$HOME/.fig/shell/zshrc.pre.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.pre.zsh" # this is my zsh config. there are many like it, but this one is mine. # shellcheck shell=bash @@ -49,3 +51,6 @@ have starship && eval "$(starship init zsh)" [ -f "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh ] \ && source "${XDG_CONFIG_HOME:-$HOME/.config}"/fzf/fzf.zsh + +# Fig post block. Keep at the bottom of this file. +[[ -f "$HOME/.fig/shell/zshrc.post.zsh" ]] && builtin source "$HOME/.fig/shell/zshrc.post.zsh" diff --git a/ssh/config b/ssh/config index 53a97d7..03ac8f2 100644 --- a/ssh/config +++ b/ssh/config @@ -4,3 +4,6 @@ Include local.d/* Host * # IdentityAgent "~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock" +# Fig ssh integration. Keep at the bottom of this file. +Match all + Include ~/.fig/ssh