From af76eba97f681472a22b1b5eb5a19578f3e871ad Mon Sep 17 00:00:00 2001 From: Dennis Potter Date: Tue, 22 Jan 2019 01:01:15 +0100 Subject: [PATCH] Added a second profile and removed a hard coded reference to the home directory --- config.yaml | 9 +++++++-- dotfiles/zsh/zshrc | 9 ++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/config.yaml b/config.yaml index 6042e92..92ee194 100644 --- a/config.yaml +++ b/config.yaml @@ -32,11 +32,16 @@ dotfiles: f_zsh_private_aliases: dst: ~/.zsh_private_aliases src: zsh/zsh_private_aliases.asc - trans: - - gpg + trans: gpg trans: gpg: gpg --no-tty -d {0} > {1} profiles: + Dennis-MacBook-Pro: + dotfiles: + - f_tmux.conf + - f_nvim + - f_zshrc + - f_zsh_private_aliases dennis-ThinkPad: dotfiles: - f_tmux.conf diff --git a/dotfiles/zsh/zshrc b/dotfiles/zsh/zshrc index 6f0e05e..dfd7a20 100644 --- a/dotfiles/zsh/zshrc +++ b/dotfiles/zsh/zshrc @@ -6,7 +6,7 @@ fi # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. -export ZSH="/home/dennis/.oh-my-zsh" +export ZSH="~/.oh-my-zsh" # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-zsh is loaded. @@ -104,6 +104,9 @@ alias dotdrop=~/dotfiles/dotdrop.sh --cfg=~/dotfiles/config.yaml source ~/.zsh_private_aliases -export PATH=$PATH:/home/dennis/code/PBinCLI/venv/bin:/home/dennis/.local/bin -export GTK_MODULES=appmenu-gtk-module +export PATH=$PATH:~/code/PBinCLI/venv/bin:~/.local/bin + +{%@@ if profile == "dennis-ThinkPad" @@%} +export GTK_MODULES=appmenu-gtk-module +{%@@ endif @@%}