From fde37c0c3ac8719709dfc31bb18d9106fa5b2273 Mon Sep 17 00:00:00 2001 From: Tiago Garcia Date: Thu, 18 Jul 2024 02:36:39 +0100 Subject: [PATCH] minor changes Signed-off-by: Tiago Garcia --- .gitconfig | 2 +- .zsh/.zshrc | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitconfig b/.gitconfig index 6fac287..406a60b 100644 --- a/.gitconfig +++ b/.gitconfig @@ -7,7 +7,7 @@ [user] email = tiago.rgarcia@ua.pt name = Tiago Garcia - signingkey = 545513959AF6B11BBAD0EF3FFF0A53A30B1ADF82 + signingkey = 163D23CB1BD2F4FECA6D3695DFCD48E3F420DB42 [core] editor = nvim excludesfile = /home/tiagorg/.gitignore diff --git a/.zsh/.zshrc b/.zsh/.zshrc index 742f3ed..c0741f5 100644 --- a/.zsh/.zshrc +++ b/.zsh/.zshrc @@ -7,6 +7,7 @@ export EDITOR=nvim alias vim='nvim' alias v='vim . && ref' alias vi='/usr/bin/vim' +alias iv='export CPATH=$(pwd)/include:$CPATH && nvim . && ref' export PF_INFO="ascii title os shell editor pkgs uptime memory" @@ -297,9 +298,16 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999999' eval "$(zoxide init --cmd cd zsh)" +if which ruby >/dev/null && which gem >/dev/null; then + PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH" +fi + +export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + # Set up path to check personal bin, include and lib directory export PATH=/home/tiagorg/.dotfiles/.local/bin:$PATH -export CPATH=/home/tiagorg/.dotfiles/.local/include:$CPATH +export CPATH=/home/tiagorg/.dotfiles/.local/include:/home/tiagorg/repos/gh-wh-handler/include:$CPATH # For C only: C_INCLUDE_PATH # For C++ only: CPLUS_INCLUDE_PATH # For Obj-C: OBJC_INCLUDE_PATH