dotfiles

commit c182c183f281f6ff4ddb0a333ae782b04b14695b

Author: Honza Pokorny <me@honza.ca>

Add paths to some vars to enable sway

 bashrc | 8 ++++++++
 fish/config.fish | 4 ++++


diff --git a/bashrc b/bashrc
index a4f66ed06889250b8c7b37e6c7c3ac6cdad21e1e..bd52866aaf89ff97ac745817e8ad0bf89b843d2f 100644
--- a/bashrc
+++ b/bashrc
@@ -154,5 +154,13 @@
 # export SHELL=/usr/local/bin/bash
 export GREP_OPTIONS='--color=auto'
 
+
+# These exports are necessary for compiling and running sway
+export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH
+export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:$PKG_CONFIG_PATH
+export PKG_CONFIG_PATH=/usr/local/share/pkgconfig:$PKG_CONFIG_PATH
+export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
+
 if [[ -s $HOME/.bashrc_local ]] ; then source $HOME/.bashrc_local ; fi
 if [[ -s $DOTFILES/bash_functions ]] ; then source $DOTFILES/bash_functions ; fi




diff --git a/fish/config.fish b/fish/config.fish
index a07e3c6a6adee0b8ab78a14bc7b6fb3eb22e8f03..b4c86960801347a01332bf89b9b6a3bc6eee2936 100644
--- a/fish/config.fish
+++ b/fish/config.fish
@@ -112,6 +112,10 @@ prepend_to_path "$HOME/.cargo/bin"
 prepend_to_path "$HOME/.pyenv/bin"
 prepend_to_path $GOPATH/bin
 
+# These exports are necessary for compiling and running sway
+set -gx PKG_CONFIG_PATH /usr/local/lib/pkgconfig /usr/local/lib64/pkgconfig /usr/local/share/pkgconfig $PKG_CONFIG_PATH
+set -gx LD_LIBRARY_PATH /usr/local/lib/ /usr/local/lib64/ $LD_LIBRARY_PATH
+
 set normal (set_color normal)
 set magenta (set_color magenta)
 set yellow (set_color yellow)