auto update
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- bash
- Domain
- cli
Research direction
The issue identifies .bashrc and provides a proposed update snippet; start by reading the repository's .bashrc and checking how its current update behavior is defined. The issue is complete only when the intended update behavior and its safety expectations are agreed and the resulting behavior is verified.
Written by the indexing model from the issue text.
Description
snagged the idea form the powershell script still trying to figure out pull reqs but I added This to my .bashrc and it has been updating
#inserted at line22
########### automaticaly get bash update from github ###########
# replace CTT with git username
REPO_URL="https://github.com/ChrisTitusTech/mybash.git"
BRANCH="main" #
#
# .bashrc file
BASHRC_FILE="$HOME/.bashrc"
# temp save bash file
TEMP_FILE=$(mktemp)
# grab updated bash
# replace CTT with git username
curl -sSL "https://raw.githubusercontent.com/ChrisTitusTech/mybash/main/.bashrc" -o "$TEMP_FILE"
# repalce bash with new
if [ -s "$TEMP_FILE" ]; then
mv -f "$TEMP_FILE" "$BASHRC_FILE" # no confirm before saving
# mv "$TEMP_FILE" "$BASHRC_FILE" # will ask for confrm before saving
echo "updated .bashrc successfully."
else
echo "failed to update .bashrc."
fi
####### end of update #########
- Dominant language
- Shell
- Stars
- 693
- Forks
- 243
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ChrisTitusTech/mybash
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChrisTitusTech/mybash#141 · 4 comments ·
-
theme-flagOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
ChrisTitusTech/mybash#140 ·
-
Bash errorOpen
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ChrisTitusTech/mybash#137 ·
All issues in ChrisTitusTech/mybash
Similar issues
-
documentation enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
aws/aws-networking-best-practices#256 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
fossi-foundation/globalfoundries-pdk-libs-gf180mcu_fd_pv#61 ·
-
openai-directory
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
smores56/homelab-platform#289 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day