Skip to content

Instantly share code, notes, and snippets.

@jbardon
Last active July 27, 2020 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbardon/4607abb746c7151163ddbd946ab2b6ec to your computer and use it in GitHub Desktop.
Save jbardon/4607abb746c7151163ddbd946ab2b6ec to your computer and use it in GitHub Desktop.
zsh setup
Aloxaf/fzf-tab
changyuheng/fz
# olets/zsh-abbr
mattmc3/zsh-safe-rm
#> wfxr/forgit
zsh-users/zsh-autosuggestions
zsh-users/zsh-completions
zsh-users/zsh-history-substring-search
zsh-users/zsh-syntax-highlighting
robbyrussell/oh-my-zsh path:plugins/colored-man-pages
#> robbyrussell/oh-my-zsh path:plugins/colorize
robbyrussell/oh-my-zsh path:plugins/command-not-found
robbyrussell/oh-my-zsh path:plugins/common-aliases
#> robbyrussell/oh-my-zsh path:plugins/cp
#> robbyrussell/oh-my-zsh path:plugins/dotnet
robbyrussell/oh-my-zsh path:plugins/dirhistory
robbyrussell/oh-my-zsh path:plugins/fd
robbyrussell/oh-my-zsh path:plugins/git
#> robbyrussell/oh-my-zsh path:plugins/git-escape-magic
#> robbyrussell/oh-my-zsh path:plugins/git-extras
#> robbyrussell/oh-my-zsh path:plugins/git-prompt
robbyrussell/oh-my-zsh path:plugins/gitfast
#> robbyrussell/oh-my-zsh path:plugins/httpie
robbyrussell/oh-my-zsh path:plugins/jira
robbyrussell/oh-my-zsh path:plugins/last-working-dir
robbyrussell/oh-my-zsh path:plugins/ng
#> robbyrussell/oh-my-zsh path:plugins/npm
#> robbyrussell/oh-my-zsh path:plugins/npx
robbyrussell/oh-my-zsh path:plugins/pj
robbyrussell/oh-my-zsh path:plugins/safe-paste
robbyrussell/oh-my-zsh path:plugins/sudo
#> robbyrussell/oh-my-zsh path:plugins/thefuck
robbyrussell/oh-my-zsh path:plugins/themes
robbyrussell/oh-my-zsh path:plugins/yarn
robbyrussell/oh-my-zsh path:plugins/z
#> andrewferrier/fzf-z (maybe fzf-tab)
#> changyuheng/zsh-interactive-cd (maybe fzf-tab)
# ln -s /mnt/c /c
# jasongin/nvs
export LOCALAPPDATA="/mnt/c/Users/jbardon/AppData/Local"
source /c/users/jbardon/.bashrc
# getantibody/antibody
source <(antibody init)
antibody bundle < ~/.zsh_plugins.txt
# zsh-users/zsh-history-substring-search
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# junegunn/fzf
export FZF_DEFAULT_COMMAND='fd --type f'
. /usr/share/doc/fzf/examples/key-bindings.zsh
# starship/starship
eval "$(starship init zsh)"
# alias
alias zshrc="vim ~/.zshrc"
unalias gr
# OM-MY-ZSH with ANITBODY
#source <(antibody init)
#
#export ZSH=$(antibody path robbyrussell/oh-my-zsh)
#ZSH_THEME="robbyrussell"
#ZSH_DISABLE_COMPFIX=true
#DISABLE_AUTO_UPDATE=true
#
#antibody bundle robbyrussell/oh-my-zsh
# fish-shell/fish-shell
set fish_greeting
# junegunn/fzf
export FZF_DEFAULT_COMMAND='fd --type f'
# patrickf3139/fzf-fish-integration
set --universal fzf_fish_custom_keybindings
bind \cf '__fzf_search_current_dir'
bind \cg '__fzf_search_git_log'
bind \cr '__fzf_search_history'
bind \cv '__fzf_search_shell_variables'
# starship/starship
starship init fish | source
brew install fish
echo '/usr/local/bin/fish' >> /etc/shells
chsh -s `which fish`
# Dependencies
brew install fzf
/usr/local/opt/fzf/install
brew instal fd
brew install starship
# Fisher plugins
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fisher add patrickf3139/fzf-fish-integration
fisher add jethrokuan/z
https://github.com/joseluisq/gitnow
# WSL (for windows users)
https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-your-linux-distribution-of-choice
sudo apt-get update
sudo apt-get upgrade
# Zsh
sudo apt-get install zsh
chsh -s /bin/zsh
echo $SHELL
# Starship prompt
Install: https://www.nerdfonts.com/font-downloads (Hack)
curl -fsSL https://starship.rs/install.sh | bash
vim ~/.config/starship.toml
# Antibody
curl -sfL git.io/antibody | sh -s - -b /usr/local/bin (in root `sudo su -`)
touch ~/.zsh_plugins.txt
# VS code
- set integrated terminal font family
- https://gist.github.com/berndverst/b6b6972d0ca3d6a569f082f53b777442
# Plugins dependencies
sudo apt-get install fzf
sudo apt-get install fd-find
# Git
git config core.autocrlf true
# TO CHECK
https://github.com/so-fancy/diff-so-fancy
https://github.com/sharkdp/bat
aliases
[git_branch]
symbol = " "
style = "bold fg:#FFD700"
[directory]
style = "bold fg:#1E90FF"
[git_status]
stashed = ""
[nodejs]
symbol = " "
style = "green"
[package]
symbol = " "
display_private = true
style = "208"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment