-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path05-replace-bashrc
More file actions
executable file
·26 lines (23 loc) · 1.16 KB
/
05-replace-bashrc
File metadata and controls
executable file
·26 lines (23 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env bash
# bashrc
if [[ ${bashrcFlag:-false} == true ]]; then
echo 'Install .bashrc.'
else
log_info '.bashrc skipped.'
return;
fi
# Percise control of your .bash_profile
echo "# ~/.bash_profile" > ~/.bash_profile
echo " [[ -f ~/.bashrc ]] && . ~/.bashrc" >> ~/.bash_profile
# Precise control of your .bashrc
echo "# ~/.bashrc" > ~/.bashrc
echo '# All the default Omarchy aliases and functions' >> ~/.bashrc
echo '[[ -f ~/.local/share/omarchy/default/bash/rc ]] && \' >> ~/.bashrc
echo ' . ~/.local/share/omarchy/default/bash/rc' >> ~/.bashrc
echo '' >> ~/.bashrc
echo "# Traap's bash personalization" >> ~/.bashrc
echo '[[ -f ~/git/dotfiles/bash/bashrc ]] && \' >> ~/.bashrc
echo ' . ~/git/dotfiles/bash/bashrc' >> ~/.bashrc
echo '' >> ~/.bashrc
echo "# Don't mess with my .inpurtc" >> ~/.bashrc
echo '[[ -f ~/.inputrc ]] && bind -f ~/.inputrc' >> ~/.bashrc