bash: use files sourcing destination instead of symlinks

this enables editing local file and not the symlink
This commit is contained in:
flyingscorpio@arch-desktop 2021-10-05 22:52:45 +02:00
parent 630144e19c
commit 835b1b6a47
2 changed files with 7 additions and 15 deletions

View file

@ -115,18 +115,12 @@ kitty:
bash: bash:
- install: - install:
- bash-completion - bash-completion
- symlink: - run:
- dotfiles/bash/bashrc - content='. "$HOME"/setup-cockpit/dotfiles/bash/bash_profile'; grep "$content" "$HOME"/.bash_profile >/dev/null 2>&1 || echo "$content" >> "$HOME"/.bash_profile
- ~/.bashrc - run:
- symlink: - content='. "$HOME"/setup-cockpit/dotfiles/bash/bashrc'; grep "$content" "$HOME"/.bashrc >/dev/null 2>&1 || echo "$content" >> "$HOME"/.bashrc
- dotfiles/shell/aliases - run:
- ~/.bash_aliases - content='. "$HOME"/setup-cockpit/dotfiles/bash/inputrc'; grep "$content" "$HOME"/.inputrc >/dev/null 2>&1 || echo "$content" >> "$HOME"/.inputrc
- symlink:
- dotfiles/bash/bash_profile
- ~/.bash_profile
- symlink:
- dotfiles/bash/inputrc
- ~/.inputrc
- clone: - clone:
- https://github.com/magicmonty/bash-git-prompt.git - https://github.com/magicmonty/bash-git-prompt.git
- ~/.bash-git-prompt - ~/.bash-git-prompt

View file

@ -10,9 +10,7 @@ shopt -s histappend # append to the history file, don't overwrite it
HISTSIZE=10000 HISTSIZE=10000
HISTFILESIZE=10000 HISTFILESIZE=10000
if [ -f ~/.bash_aliases ]; then . "$HOME"/setup-cockpit/dotfiles/shell/aliases
. ~/.bash_aliases
fi
if [ -f /usr/share/bash-completion/bash_completion ]; then if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion . /usr/share/bash-completion/bash_completion