Skip to content

Commit

Permalink
getting ready for 3rd release
Browse files Browse the repository at this point in the history
  • Loading branch information
Bhupesh-V committed Oct 24, 2020
1 parent 00b10a1 commit 991ff98
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to this project will be documented in this file.

## [0.3.0] - Oct , 2020

### Changed
- How changes are pulled, dotman no longer pulls from `master` branch, your default branch is automatically determined. By **[Prajeshpuri](https://github.com/Bhupesh-V/dotman/pull/18)** 🙌
- Switch to stable version on install through `install.sh`.
- Other minor improvements.

### Fixed
- First time setup issues.
- _"No names found, cannot describe anything."_ error while running `dotman version`.
- Double exported aliases when installing dotman again.


## [0.2.0] - Aug 25, 2020

### Changed
Expand Down
12 changes: 6 additions & 6 deletions dotman.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

IFS=$'\n'

VERSION="v0.2.0"
VERSION="v0.3.0"

# check if tput exists
if ! command -v tput &> /dev/null; then
Expand Down Expand Up @@ -86,17 +86,16 @@ find_dotfiles() {
}

add_env() {
[[ "$DOT_DEST" && "$DOT_REPO" ]] && return
# export environment variables
printf "\n%s\n" "Exporting env variables DOT_DEST & DOT_REPO ..."

current_shell=$(basename "$SHELL")
if [[ $current_shell == "zsh" ]]; then
echo "export DOT_REPO=$1" >> "$HOME"/.zshrc
echo "export DOT_DEST=$2" >> "$HOME"/.zshrc
echo "export DOT_REPO=$1 DOT_DEST=$2" >> "$HOME"/.zshrc
elif [[ $current_shell == "bash" ]]; then
# assume we have a fallback to bash
echo "export DOT_REPO=$1" >> "$HOME"/.bashrc
echo "export DOT_DEST=$2" >> "$HOME"/.bashrc
echo "export DOT_REPO=$1 DOT_DEST=$2" >> "$HOME"/.bashrc
else
echo "Couldn't export ${BOLD}DOT_REPO=$1${RESET} and ${BOLD}DOT_DEST=$2${RESET}"
echo "Consider exporting them manually".
Expand Down Expand Up @@ -194,7 +193,7 @@ clone_dotrepo (){
}

initial_setup() {
printf "\n\n%s" "First time use 🔥, Set Up ${BOLD}dotman${RESET}"
printf "\n\n%s\n" "First time use 🔥, Set Up ${BOLD}dotman${RESET}"
printf "%s\n" "...................................."
read -p "➤ Enter dotfiles repository URL : " -r DOT_REPO
read -p "➤ Where should I clone ${BOLD}$(basename "${DOT_REPO}")${RESET} (${HOME}/..): " -r DOT_DEST
Expand All @@ -203,6 +202,7 @@ initial_setup() {
if [[ -d "$HOME/$DOT_DEST" ]]; then
printf "\n%s\r\n" "${BOLD}Calling 📞 Git ... ${RESET}"
clone_dotrepo "$DOT_DEST" "$DOT_REPO"
printf "\n%s\n" "Open a new terminal or source your shell config"
else
printf "\n%s" "[❌]${BOLD}$DOT_DEST${RESET} Not a Valid directory"
exit 1
Expand Down

0 comments on commit 991ff98

Please sign in to comment.