dotfiles

Files to recover my file system.
git clone git://git.nomxz.net/dotfiles.git
Log | Files | Refs | README

commit 9b142d5d7486dac690b5148ffd45f164a3f688dc
parent 1ff849ae969cefc4b85dad03bd2a42d1e37f1716
Author: Ramon Asuncion <asuncionbatista@gmail.com>
Date:   Sun,  9 Oct 2022 07:56:08 -0400

Update files to latest.

Diffstat:
M.gitconfig | 19++++---------------
M.oh-my-zsh/themes/pointer.zsh-theme | 5+----
MBrewfile | 26+-------------------------
MREADME.md | 34+++++-----------------------------
Amac.sh | 37+++++++++++++++++++++++++++++++++++++
5 files changed, 48 insertions(+), 73 deletions(-)

diff --git a/.gitconfig b/.gitconfig @@ -1,21 +1,10 @@ -# This is Git's per-user configuration file. [user] name = "Ramon Asuncion" username = "RamonAsuncion" email = asuncionbatista@gmail.com - +[init] + defaultBranch = main + [alias] - c = commit - cm = commit -m - cl = clone - d = diff - f = fetch - m = merge - o = checkout - ob = checkout -b - ps = push - pl = pull - rb = rebase - s = status - + tree = log --graph --decorate --pretty=oneline --abbrev-commit diff --git a/.oh-my-zsh/themes/pointer.zsh-theme b/.oh-my-zsh/themes/pointer.zsh-theme @@ -1,11 +1,8 @@ PROMPT="%c ➤ %{$reset_color%}" +RPROMPT='%{$fg[$NCOLOR]%} $(git_prompt_info)%{$reset_color%}' ZSH_THEME_GIT_PROMPT_PREFIX="git:" ZSH_THEME_GIT_PROMPT_SUFFIX="" ZSH_THEME_GIT_PROMPT_DIRTY="*" ZSH_THEME_GIT_PROMPT_CLEAN="" -# See https://geoff.greer.fm/lscolors/ -export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx" -export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=31;40:cd=31;40:su=31;40:sg=31;40:tw=31;40:ow=31;40:" - diff --git a/Brewfile b/Brewfile @@ -1,32 +1,8 @@ -tap "bell-sw/liberica" tap "homebrew/bundle" tap "homebrew/cask" tap "homebrew/cask-fonts" -tap "homebrew/core" -tap "mongodb/brew" -brew "jpeg" -brew "glib" -brew "fortune" -brew "gdk-pixbuf" -brew "unbound" -brew "gnutls" -brew "gobject-introspection" -brew "gradle" -brew "harfbuzz" -brew "pango" -brew "librsvg" -brew "graphviz" -brew "python@3.10" +tap "homebrew/core brew "ipython" brew "micro" brew "mosh" -brew "node" -brew "pipenv" -brew "ruby" -brew "typescript" brew "vim" -brew "zsh-autosuggestions" -brew "zsh-syntax-highlighting" -cask "chromedriver" -cask "emacs" -cask "liberica-jdk15-full" diff --git a/README.md b/README.md @@ -1,41 +1,17 @@ # Ramon's Dotfiles -Currently working on a MacOS system. -I'm hoping to add my linux system files into this repository. ## Installation -### If on MacOS install the Command Line Tols for Mac. +### If on MacOS install the Command Line Tools for Mac. ```bash xcode-select --install ``` -### Install through HTTP on a new device. -```basg -git clone https://github.com/RamonAsuncion/.dotfiles.git -``` - -### Symlinks to home directory -```bash -ln -s ~/.dotfiles/.zshrc ~/.zshrc -ln -s ~/.dotfiles/.gitconfig ~/.gitconfig -ln -s ~/.dotfiles/.tmux.conf ~/.tmux.conf -``` - -### Install HomeBrew -```bash -/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" -``` - -### Install Brewfile -```bash -brew bundle --file ~/.dotfiles/Brewfile -``` - -## Author +After, run the `mac.sh`. -Made by me. +# Requirements +* git +* zsh -### Thanks to -Matt Compton and helping me out figure out problems I had with the .zshrc file. diff --git a/mac.sh b/mac.sh @@ -0,0 +1,37 @@ +#!/bin/bash +GITHUB_USERNAME="RamonAsuncion" +REPOSITORY="dotfiles" +FILE=".dotfiles" + +# Download the dotfiles to the home directory. +git clone https://github.com/$GITHUB_USERNAME/$REPOSITORY.git $HOME/$FILE + +# Create the symbolic links. +ln -s $HOME/$FILE/.zshrc $HOME/.zshrc +ln -s $HOME/$FILE/.gitconfig $HOME/.gitconfig + +# Ask the user if they want to install homebrew. +read -r -p "Install Homebrew [Y/n]: " response + +# Check the response the user inputted. +if [ "$response" != "${response#[Yy]}" ] || [ "$response" = "" ]; then + # Check if the brew command already exist. + if command -v brew &>/dev/null; then + echo "Homebrew is already installed." + else + echo "Installing Homebrew..." + /usr/bin/ruby -e \ + "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + + echo "Adding Homebrew to path..." + export PATH="/usr/local/bin:$PATH" + + echo "Installing Brewfile packages..." + brew bundle --file $FILE/Brewfile + + echo "Checking for updates..." + brew update + fi +fi + +echo "Exiting."