fix zsh/install script

main
Steffen Rademacker 3 months ago
parent 6cb55737f0
commit 766e7b472b

@ -17,17 +17,6 @@ current_branch () {
echo ${ref#refs/heads/} echo ${ref#refs/heads/}
} }
# fancy vim/shell switch with ctrl-z (see zshrc)
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
else
zle push-input
zle clear-screen
fi
}
# terminal weather shortcut # terminal weather shortcut
wttr () { wttr () {
if [[ -n "$1" ]] if [[ -n "$1" ]]
@ -76,3 +65,18 @@ pdf () {
rm temp.pdf rm temp.pdf
rm *.jpg rm *.jpg
} }
# fancy vim/shell switch with ctrl-z (see zshrc)
fancy-ctrl-z () {
if [[ $#BUFFER -eq 0 ]]; then
BUFFER="fg"
zle accept-line
else
zle push-input
zle clear-screen
fi
}
# easy vim/terminal switch after loading zsh-functions
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z

@ -24,12 +24,8 @@ setopt NO_HUP # fixes topgrade
# Source exports, aliases and functions # Source exports, aliases and functions
source ~/.zsh/exports.sh source ~/.zsh/exports.sh
source ~/.zsh/aliases.sh
source ~/.zsh/functions.sh source ~/.zsh/functions.sh
source ~/.zsh/aliases.sh
# easy vim/terminal switch after loading zsh-functions
zle -N fancy-ctrl-z
bindkey '^Z' fancy-ctrl-z
# other tools init, pyenv + rbenv are sandboxd # other tools init, pyenv + rbenv are sandboxd
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

@ -26,7 +26,7 @@ export PATH=/usr/local/bin:/usr/local/sbin:$PATH
brew tap homebrew/services brew tap homebrew/services
brew doctor brew doctor
brew install fzf neovim lazygit ripgrep zoxide zsh brew install fzf neovim lazygit ripgrep zoxide zsh
brew install curl fd git git-delta openssl pyenv rbenv stow brew install curl fd git git-delta n openssl pyenv rbenv stow
# stow everything, link dotfiles, set zsh as default and restart # stow everything, link dotfiles, set zsh as default and restart
cd ~/dotfiles && stow . cd ~/dotfiles && stow .
@ -41,17 +41,12 @@ exit
# ------------------------------------------------------------- # # ------------------------------------------------------------- #
# ruby, node, python and all the essential tools they provide # ruby, node, python and all the essential tools they provide
curl -L https://git.io/n-install | bash
n lts n lts
npm install -g npm@latest && npm update -g pyenv install 3.12.4 && pyenv global 3.12.4
rbenv install 3.3.4 rbenv install 3.3.4 && rbenv global 3.3.4
rbenv global 3.3.4
pyenv install 3.12.4
pyenv global 3.12.4
pip install --upgrade pip
pip install setuptools tiptop neovim pip install setuptools tiptop neovim
npm install -g neovim fkill-cli npm-check trash-cli yarn
gem install neovim gem install neovim
npm install -g neovim fkill-cli trash-cli
# Custom node scripts and fzf installation # Custom node scripts and fzf installation
cd ~/Dotfiles/scripts/out && npm i -g cd ~/Dotfiles/scripts/out && npm i -g
@ -90,10 +85,5 @@ brew install --cask affinity-designer affinity-photo reaper tidal vlc
# surfingkeys, dark reader, privacy badger, ublock origin, # surfingkeys, dark reader, privacy badger, ublock origin,
# react developer tools, df youtube, axe devtools, strongbox autofill # react developer tools, df youtube, axe devtools, strongbox autofill
# Other software that can't be installed via brew, also install manually: # Apps from the app-store: strongbox, xcode, unifi
# bill: https://billtheapp.com/ # Other software: https://billtheapp.com
# Apps from the app-store, log in, install:
# strongbox, xcode, unifi
#
# Spread love, stay curious.

Loading…
Cancel
Save