Skip to content

Commit

Permalink
Update .chezmoiexternal.toml
Browse files Browse the repository at this point in the history
Update README.md
Update zsh.zsh
  • Loading branch information
AndreasBackx committed Sep 6, 2023
1 parent 7383d4b commit a1eae9f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 56 deletions.
12 changes: 11 additions & 1 deletion .chezmoiexternal.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
refreshPeriod = "168h"
exact = true


[".oh-my-zsh/custom/themes/spaceship-prompt"]
type = "git-repo"
url = "https://github.com/denysdovhan/spaceship-prompt.git"
Expand All @@ -34,3 +33,14 @@
url = "https://github.com/gpakosz/.tmux.git"
refreshPeriod = "168h"
exact = true

[".local/share/pyenv"]
type = "git-repo"
url = "https://github.com/pyenv/pyenv.git"
refreshPeriod = "168h"

[".local/share/pyenv/plugins/pyenv-virtualenv"]
type = "git-repo"
url = "https://github.com/pyenv/pyenv-virtualenv.git"
refreshPeriod = "168h"
exact = true
51 changes: 0 additions & 51 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,6 @@ selected = "home"
# Optionally name the location of your shell environment.
export ENV_LOCATION=""

# You can use variables from ~/.config/.variables.
export MONITOR_LEFT="$MONITOR_HOME_LEFT"
export MONITOR_CENTER="$MONITOR_HOME_CENTER"
export MONITOR_RIGHT="$MONITOR_HOME_RIGHT"
# export MONITOR_TV="$MONITOR_HOME_TV"
# export MONITOR_LAPTOP=""

# export MONITOR_HOME_CENTER_REFRESH_RATE="144.06"

# If you want to disable the monitors cli.
# export DISABLE_MONITORS="yes"

Expand Down Expand Up @@ -66,49 +57,13 @@ export GITHUB_TOKEN=""
## Installation

```zsh
echo ".cfg" >> .gitignore
git clone --bare [email protected]:AndreasBackx/dotfiles.git $HOME/.cfg
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
mkdir -p .config-backup
config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .config-backup/{}
config checkout
config config --local status.showUntrackedFiles no

touch ~/.config/.secrets
touch ~/.config/.local-variables

source ~/.zprofile
source ~/.zshenv
source ~/.zshrc

# Homebrew
git clone https://github.com/Homebrew/brew ~/.homebrew
brew update

# oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --keep-zshrc

# spaceship-prompt
git clone [email protected]:denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"

# zsh-autosuggestions
git clone [email protected]:zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
chmod 755 ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions -R

# zsh-syntax-highlighting
git clone [email protected]:zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
chmod 755 ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting -R

# zsh-completions
git clone [email protected]:zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions

# zsh-autocomplete
# git clone [email protected]:marlonrichert/zsh-autocomplete ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-autocomplete

# autoupdate
git clone [email protected]:TamCore/autoupdate-oh-my-zsh-plugins.git ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/autoupdate

# fzf
## Arch Linux
paru -S fzf
Expand All @@ -119,12 +74,6 @@ sudo apt-get install fzf
## MacOS
brew install fzf

# pyenv
git clone [email protected]:pyenv/pyenv.git $PYENV_ROOT
cd $PYENV_ROOT && src/configure && make -C src
git clone [email protected]:pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
git clone [email protected]:pyenv/pyenv-update.git $(pyenv root)/plugins/pyenv-update

# ddcutil i2c
sudo groupadd --system i2c
sudo usermod $(whoami) -aG i2c
Expand Down
10 changes: 6 additions & 4 deletions run_after_zsh.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ zsh_custom="$HOME"/.oh-my-zsh/custom

echo "Execute $0..."

[ -L "${zsh_custom}"/themes/spaceship.zsh-theme ] \
|| ln -s "${zsh_custom}"/themes/spaceship-prompt/spaceship.zsh-theme "${zsh_custom}"/themes/spaceship.zsh-theme
[ -L "${zsh_custom}"/themes/spaceship.zsh-theme ] ||
ln -s "${zsh_custom}"/themes/spaceship-prompt/spaceship.zsh-theme "${zsh_custom}"/themes/spaceship.zsh-theme

[ -L "~/.tmux.conf" ] ||
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf

zsh=$(whereis zsh | awk '{print $2}')

if ! grep "^$USER" /etc/passwd | grep -q zsh ; then
if ! grep "^$USER" /etc/passwd | grep -q zsh; then
chsh -s "$zsh"
fi

0 comments on commit a1eae9f

Please sign in to comment.