From eb70dfd0699d8dfe343fd80942e5e6926aa93212 Mon Sep 17 00:00:00 2001 From: Tim Triemstra Date: Sun, 18 Aug 2024 20:35:58 -0700 Subject: [PATCH 1/4] very tiny formatting commit --- Mac/dot-aliases.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Mac/dot-aliases.sh b/Mac/dot-aliases.sh index ea032d2..89052ca 100755 --- a/Mac/dot-aliases.sh +++ b/Mac/dot-aliases.sh @@ -57,12 +57,12 @@ then # Make standard 'ls' look prettier, with colors and sorting # alias ls='ls -FG' else - ## Aliasing 'ls' commands to use 'eza' - alias ll='eza --long --sort=Name --git --git-repos -I "Icon?" --group-directories-first --no-quotes --no-permissions --no-user' - alias lls='eza --sort=Name --git --git-repos -I "Icon?" --group-directories-first --no-quotes' - alias lla='eza -a --long --sort=Name --git -I "Icon?" -I ".DS_Store" --group-directories-first' - alias llx='eza -a --long --sort=Name --git -I "Icon?" -I ".DS_Store" --group-directories-first -@ -Z' - alias llt='eza --tree' + ## Aliasing 'ls' commands to use 'eza' + alias ll='eza --long --sort=Name --git --git-repos -I "Icon?" --group-directories-first --no-quotes --no-permissions --no-user' + alias lls='eza --sort=Name --git --git-repos -I "Icon?" --group-directories-first --no-quotes' + alias lla='eza -a --long --sort=Name --git -I "Icon?" -I ".DS_Store" --group-directories-first' + alias llx='eza -a --long --sort=Name --git -I "Icon?" -I ".DS_Store" --group-directories-first -@ -Z' + alias llt='eza --tree' fi From 50a3d53d19884d0f272646eaf6eaccc3837925a2 Mon Sep 17 00:00:00 2001 From: Tim Triemstra Date: Sat, 12 Oct 2024 10:57:59 -0700 Subject: [PATCH 2/4] very tiny formatting commit --- Mac/dotfiles.sh | 2 +- dotfiles.code-workspace | 8 -------- readme.md | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 dotfiles.code-workspace diff --git a/Mac/dotfiles.sh b/Mac/dotfiles.sh index 41657a5..e542ce3 100755 --- a/Mac/dotfiles.sh +++ b/Mac/dotfiles.sh @@ -57,7 +57,7 @@ sudo chmod 744 /usr/local/bin # ============================================================================== -message "Setup root dotfiles" "Overwriting existing files at $HOME" +message "✅ Setup root dotfiles" "Overwriting existing files at $HOME" cp $DOTFILES_ROOT/Mac/dot-zshrc.sh $HOME/.zshrc cp $DOTFILES_ROOT/Mac/dot-zshenv.sh $HOME/.zshenv cp $DOTFILES_ROOT/Mac/dot-aliases.sh $HOME/.aliases diff --git a/dotfiles.code-workspace b/dotfiles.code-workspace deleted file mode 100644 index 876a149..0000000 --- a/dotfiles.code-workspace +++ /dev/null @@ -1,8 +0,0 @@ -{ - "folders": [ - { - "path": "." - } - ], - "settings": {} -} \ No newline at end of file diff --git a/readme.md b/readme.md index c7c04d7..0d2bcb9 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ # Dotfiles for Tim Triemstra -On a Mac or Linux system, simply run: +To setup on Mac or Linux, type the following (assumes `zsh`): ``` git clone https://github.com/timtr/Dotfiles.git From 5fe3a6347148edc9179a8114849b5b2092b92c82 Mon Sep 17 00:00:00 2001 From: Tim Triemstra Date: Sun, 13 Oct 2024 09:43:29 -0700 Subject: [PATCH 3/4] very tiny formatting commit --- Mac/dotfiles.sh | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/Mac/dotfiles.sh b/Mac/dotfiles.sh index e542ce3..c2aee2d 100755 --- a/Mac/dotfiles.sh +++ b/Mac/dotfiles.sh @@ -4,7 +4,7 @@ echo source "$DOTFILES_ROOT/Mac/dot-functions.sh" -message "DOTFILES_ROOT" "$DOTFILES_ROOT" +message "✳️ DOTFILES_ROOT" "$DOTFILES_ROOT" #message "dotfiles.sh" "run location = ${0:a:h}" @@ -12,22 +12,22 @@ message "DOTFILES_ROOT" "$DOTFILES_ROOT" # Require `zsh` as the default, and set the default shell if needed if [ $SHELL != "/bin/zsh" ]; then chsh -s /bin/zsh - echo "Requires \"zsh\". Switched default shell to /bin/zsh -- re-run setup.sh file" + echo "❌ Requires \"zsh\". Switched default shell to /bin/zsh -- re-run setup.sh file" exit 0 fi # If Xcode isn't installed, then abort the install if xcode-select -p &> /dev/null then - message "xcode-selected -p:" "$(xcode-select -p)" + message "✳️ xcode-selected -p:" "$(xcode-select -p)" else - error "Xcode missing! Install Xcode, then re-run the script." + error "❌ Xcode missing! Install Xcode, then re-run the script." exit 0 fi # ============================================================================== -message "SUDO may be required" "Setting file permissions and ownership" +message "✳️ SUDO may be required" "Setting file permissions and ownership" # Claim ownership of all my dotfiles sudo chown -R $USER $DOTFILES_ROOT 2> /dev/null @@ -72,7 +72,7 @@ cp $DOTFILES_ROOT/Config/dot-vimrc $HOME/.vimrc # Register gitignore and other git stuff git config --global core.excludesfile ~/.gitignore -message "Setup app preferences" "Overwriting Terminal, Xcode, and other settings" +message "✅ Setup app preferences" "Overwriting Terminal, Xcode, and other settings" # Copy app settings cp $DOTFILES_ROOT/Config/Preferences/* $HOME/Library/Preferences/ @@ -82,7 +82,7 @@ cp -R $DOTFILES_ROOT/Config/Xcode/* $HOME/Library/Developer/Xcode/UserData/FontA # ============================================================================== -message "Setup defaults" "Adding paths and variables to .zshenv" +message "✅ Setup defaults" "Adding paths and variables to .zshenv" echo " " >> ~/.zshenv echo "# Add global DOTFILES_ROOT pointing Dotfiles install folder" >> ~/.zshenv echo "export DOTFILES_ROOT=$DOTFILES_ROOT" >> ~/.zshenv @@ -104,25 +104,27 @@ defaults write com.apple.desktopservices DSDontWriteUSBStores -bool TRUE # ============================================================================== # Create ~/Developer folder in which to put local developer stuff, e.g. repos if [[ -d "$HOME/Developer/" ]]; then - message "~/Developer exists" "To reset, delete and rerun dotfiles.sh" + message "✳️ ~/Developer exists" "To reset, delete and rerun dotfiles.sh" else - message "Setup ~/Developer" "Creating new folder for local developer work" + message "✅ Setup ~/Developer" "Creating new folder for local developer work" fi # ============================================================================== # Check if the "~/local.sh" file exists, and if not, copy the stub version to user home if [[ -f "$HOME/local.sh" ]]; then - message "Setup /local.sh (existed)" "Delete the file to re-install a template" + message "✳️ Setup /local.sh (existed)" "Delete the file to re-install a template" else - message "Set ~/local.sh" "Installing file from original template in ./Dotfiles" + message "✅ Set ~/local.sh" "Installing file from original template in ./Dotfiles" cp $DOTFILES_ROOT/Home/local-template.sh $HOME/local.sh fi # ============================================================================== -message "git config --global user.name =" "$(git config --get user.name)" -message "git config --global user.email =" "$(git config --get user.email)" -message "Restart terminal" "Optionally run: setup-brew.sh and setup-ruby.sh" +message "✅ git config --global user.name =" "$(git config --get user.name)" +message "✅ git config --global user.email =" "$(git config --get user.email)" +echo +message "🎉 Success!" "Restart Terminal and run setup-brew.sh and setup-ruby.sh" + echo exit 0 From 5366b1304da619dbffa8460ee796593a522f0561 Mon Sep 17 00:00:00 2001 From: Tim Triemstra Date: Sun, 13 Oct 2024 19:48:11 -0700 Subject: [PATCH 4/4] very tiny formatting commit --- Mac/dotfiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mac/dotfiles.sh b/Mac/dotfiles.sh index c2aee2d..60836c2 100755 --- a/Mac/dotfiles.sh +++ b/Mac/dotfiles.sh @@ -27,7 +27,7 @@ fi # ============================================================================== -message "✳️ SUDO may be required" "Setting file permissions and ownership" +message "🔐 SUDO may be required" "Setting file permissions and ownership" # Claim ownership of all my dotfiles sudo chown -R $USER $DOTFILES_ROOT 2> /dev/null