fix: bashrc and zshrc profile sharing

This commit is contained in:
Tobias Reisinger 2019-12-20 02:56:06 +01:00
parent 296c26752c
commit 583d5235ff
3 changed files with 12 additions and 11 deletions

11
.bashrc
View file

@ -21,18 +21,11 @@ PS1="$PURPLE\u$nc@$BLUE\H$nc:$GREEN\w$YELLOW"'$(__git_ps1)'"$nc\\n$GREEN\$$nc "
export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin:~/bin
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
source /usr/share/git/completion/git-prompt.sh
else
function __git_ps1() { echo ""; };
fi
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
if [ -f ~/.bashrc.local ]; then
source ~/.bashrc.local
fi
[ -f $HOME/.bashrc.local ] && source $HOME/.bashrc.local
[ -f $HOME/.profile ] && source $HOME/.profile

View file

@ -62,8 +62,7 @@ bindkey -s '^o' 'lfcd\n'
autoload edit-command-line; zle -N edit-command-line
bindkey '^e' edit-command-line
# Load aliases
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
[ -f $HOME/.profile ] && source $HOME/.profile
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null

9
.profile Normal file
View file

@ -0,0 +1,9 @@
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
[ -f "$HOME/.config/aliasrc" ] && source $HOME/.config/aliasrc
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent