From 02f2a0b5351801c97dda9db648c820636ceca32f Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Fri, 20 Dec 2024 23:14:45 +0300 Subject: [PATCH] zsh configs --- Brewfile | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ git/.gitconfig | 61 ++++++++++++++++++++++++++++++++++++++++++++++++++ zsh/.zprofile | 1 + zsh/.zshrc | 37 ++++++++++++++++++++++++++++++ 4 files changed, 160 insertions(+) create mode 100644 Brewfile create mode 100644 git/.gitconfig create mode 100644 zsh/.zprofile create mode 100644 zsh/.zshrc diff --git a/Brewfile b/Brewfile new file mode 100644 index 0000000..e876dbe --- /dev/null +++ b/Brewfile @@ -0,0 +1,61 @@ +tap "homebrew/bundle" +tap "homebrew/cask" +tap "homebrew/core" +tap "homebrew/cask-fonts" + +brew "bash" +brew "bash-completion@2" +brew "cmake" +brew "curl" +brew "eza" +brew "flux" +brew "fzf" +brew "git" +brew "gnupg" +brew "go" +brew "htop" +brew "hyperfine" +brew "jq" +brew "mas" +brew "mkvtoolnix" +brew "moreutils" +brew "neovim" +brew "node" +brew "openssh" +brew "openssl" +brew "ripgrep" +brew "rust" +brew "stow" +brew "the_silver_searcher" +brew "tmux" +brew "tmuxp" +brew "wget" + +cask "1password" +cask "alacritty" +cask "appcleaner" +cask "discord" +cask "font-fira-code-nerd-font" +cask "font-hack-nerd-font" +cask "gpg-suite" +cask "jetbrains-toolbox" +cask "keka" +cask "megasync" +cask "mimestream" +cask "monodraw" +cask "netnewswire" +cask "paintbrush" +cask "qbittorrent" +cask "raycast" +cask "rectangle" +cask "steam" +cask "visual-studio-code" +cask "vorta" +cask "yacreader" +cask "xld" +cask "zotero" + +mas "Bear", id: 1091189122 +mas "Tailscale", id: 1475387142 +mas "Things", id: 904280696 +mas "Xcode", id: 497799835 \ No newline at end of file diff --git a/git/.gitconfig b/git/.gitconfig new file mode 100644 index 0000000..c2b93f2 --- /dev/null +++ b/git/.gitconfig @@ -0,0 +1,61 @@ +[core] + editor = nvim + excludesFile = ~/.gitignore + fsmonitor = true + pager = delta + +[init] + defaultBranch = main + +[user] + name = Ian Andwati + email = andwatiian@gmail.com + +[github] + user = andwati + +[gpg] + program = gpg2 + +[credential] + helper = osxkeychain + +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true + +[branch] + autosetuprebase = always + +[commit] + gpgsign = true + +[push] + default = tracking + autoSetupRemote = true + +[pull] + ff = only + +[merge] + conflictstyle = zdiff3 + +[rebase] + autosquash = true + +[diff] + algorithm = histogram + +[interactive] + diffFilter = delta --color-only + +[help] + autocorrect = prompt + +[maintenance] + repo = $HOME/Projects/Foreign/zig + +[fetch] + writeCommitGraph = true \ No newline at end of file diff --git a/zsh/.zprofile b/zsh/.zprofile new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/zsh/.zprofile @@ -0,0 +1 @@ + diff --git a/zsh/.zshrc b/zsh/.zshrc new file mode 100644 index 0000000..a931394 --- /dev/null +++ b/zsh/.zshrc @@ -0,0 +1,37 @@ +# Use powerline +USE_POWERLINE="true" +# Has weird character width +# Example: +#  is not a diamond +HAS_WIDECHARS="false" +# Source manjaro-zsh-configuration +if [[ -e /usr/share/zsh/manjaro-zsh-config ]]; then + source /usr/share/zsh/manjaro-zsh-config +fi +# Use manjaro zsh prompt +if [[ -e /usr/share/zsh/manjaro-zsh-prompt ]]; then + source /usr/share/zsh/manjaro-zsh-prompt +fi +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" +source /usr/share/nvm/init-nvm.sh + +# >>> conda initialize >>> +# !! Contents within this block are managed by 'conda init' !! +__conda_setup="$('/home/ian/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" +if [ $? -eq 0 ]; then + eval "$__conda_setup" +else + if [ -f "/home/ian/anaconda3/etc/profile.d/conda.sh" ]; then + . "/home/ian/anaconda3/etc/profile.d/conda.sh" + else + export PATH="/home/ian/anaconda3/bin:$PATH" + fi +fi +unset __conda_setup +# <<< conda initialize <<< + +# Install Ruby Gems to ~/gems +export GEM_HOME="$HOME/gems" +export PATH="$HOME/gems/bin:$PATH"