zsh configuration files for macOS
Video Tutorial: https://www.youtube.com/watch?v=y6XCebnB9gs&t=284s
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/moebis/.zprofile echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >› /Users/moebis/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
or
brew install zsh-autosuggestions zsh-syntax-highlighting
edit .zshrc
add:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting web-search)
add:
alias ls="eza --icons --group-directories-first"
alias cat="bat -pp"
#Oh My Posh
if [ "$TERM_PROGRAM" != "Apple_Terminal" ]; then
# eval "$(oh-my-posh init zsh)"
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/moebis.toml)"
fi
#Zoxide
eval "$(zoxide init zsh)"
fastfetch
brew install oh-my-posh
brew install yazi ffmpeg 7-Zip jq poppler fd rg fzf zoxide ImageMagick bat eza stow btop fastfetch
nano ~/.stow-global-ignore
add to ignore:
RCS
.+,v
CVS
\.\#.+ # CVS conflict files / emacs lock files
\.cvsignore
\.svn
_darcs
\.hg
\.git
\.gitignore
\.gitmodules
.+~ # emacs backup files
\#.*\# # emacs autosave files
^/README.*
^/LICENSE.*
^/COPYING
\.DS_Store
create dotfiles and .gitignore
mkdir ~/dotfiles
cd ~/dotfiles
echo .DS_Store >> .gitignore
stow .
git init .
git add .zshrc
git commit -m "Initial commit"
git commit --amend --author="moebis <carl@moebis>" --no-edit
git config --global --edit
git config --global user.name "moebis"
git config --global user.email [email protected]
git commit --amend --reset-author
git config --list
git add .config/
git commit -m "added .config"
check diff
git diff .
revert changes
git checkout .zshrc
git status
git status
roll back changes
git restore .
DS_Stores:
git add .gitignore
git commit -m '.DS_Store banished!'
Initial git sync:
git remote add origin [email protected]:moebis/dotfiles.git
git push origin main
Remove an origin:
git remote rm origin
GIT Key Creation:
- Generate SSH key using ssh-keygen -t rsa -b 4096 -C "your email".
- Copy the output of cat ~/.ssh/id_rsa.pub to your clipboard
- Paste the above-copied output to the form at https://github.com/settings/ssh/new
- Then go ahead to retry the operation that generated the initial fatal error.
To Pull Down Git Initially
git clone [email protected]:moebis/dotfiles.git
To Pull Down Changes
git pull
To Add Changes:
git commit -a
git push origin main