dotfiles/freshrc

130 lines
3.9 KiB
Plaintext
Raw Normal View History

2019-08-29 12:43:27 +10:00
# vim: ft=sh
2017-04-02 10:32:51 +10:00
fresh freshshell/fresh bin/fresh --bin
2020-04-03 10:46:36 +11:00
fresh freshshell/fresh-open bin/fresh-open --bin
2017-04-02 10:32:51 +10:00
fresh-options --file=~/.ctags
fresh misc/ctags
fresh romainl/ctags-patterns-for-javascript ctagsrc
fresh jb55/typescript-ctags .ctags
fresh rust-lang/rust.vim ctags/rust.ctags
fresh mmorearty/elixir-ctags .ctags
fresh https://gist.github.com/noisesmith/ebe8b3f185e34a7de04b1189b21ba59b.git .ctags # Clojure
fresh-options
2017-04-02 10:32:51 +10:00
fresh languages/clojure/lein/profiles.clj --file=~/.lein/profiles.clj
fresh-options --file=~/.rubocop.yml
# # disabled because it relies on custom cops and specific rubocop versions:
# fresh testdouble/standard config/base.yml
fresh languages/ruby/rubocop.yml
fresh-options
2017-04-02 10:32:51 +10:00
fresh-options --file # each file as is
fresh languages/ruby/gemrc
fresh languages/ruby/irbrc
2020-04-03 15:36:53 +11:00
# asdf conf
fresh languages/asdfrc
fresh languages/ruby/default-gems # asdf-ruby only
2017-04-02 10:32:51 +10:00
fresh misc/ackrc
fresh misc/agignore
fresh misc/inputrc
fresh misc/nanorc
fresh misc/psqlrc
fresh misc/tmux/tmux.conf
fresh vcs/git/gitattributes
fresh vcs/git/gitconfig
fresh vcs/git/gitconfig.merge
fresh vcs/git/gitconfig.pushurls
fresh vcs/git/gitignore
fresh --file=~/.git_template/ vcs/git/git_template
2017-04-02 10:32:51 +10:00
fresh-options
2019-08-29 10:07:39 +10:00
fresh editors/vim/init.nvim --file ~/.config/nvim/init.vim
2017-04-02 10:32:51 +10:00
2019-08-29 10:07:39 +10:00
fresh-options --file=~/.vimrc --marker='"'
fresh editors/vim/vimrc
fresh-options
2017-04-02 10:32:51 +10:00
fresh-options --file=~/.zshrc --marker
fresh shells/path.sh # this must come first so we can check for tmux
fresh shells/tmux.sh # this must happen before p10k to guarantee it has tty
2020-05-26 13:35:21 +10:00
fresh shells/zsh/p10k-instant-prompt.zsh
2019-07-22 16:21:32 +10:00
fresh freshshell/fresh contrib/source-build.sh
2017-04-02 10:32:51 +10:00
fresh mathiasbynens/dotfiles .functions
fresh twe4ked/dotfiles shell/zsh/completion.zsh
fresh junegunn/fzf shell/completion.zsh
fresh junegunn/fzf shell/key-bindings.zsh
2019-07-22 16:21:32 +10:00
fresh shells/common/\*.sh
fresh shells/zsh/lib/\*.zsh
2020-05-26 13:35:21 +10:00
fresh shells/zsh/p10k.zsh
2020-05-04 14:26:54 +10:00
fresh shells/local.zsh
2017-04-02 10:32:51 +10:00
fresh-options
fresh-options --file=~/.bashrc --marker
fresh shells/path.sh
fresh shells/tmux.sh
fresh shells/common/\*.sh
fresh shells/bash/\*.bash
fresh shells/bash/lib/\*.bash
2020-05-04 14:26:54 +10:00
fresh shells/local.bash
fresh-options
2017-04-02 10:32:51 +10:00
2019-07-22 16:21:32 +10:00
fresh zsh-users/zsh-completions src --file=completion/
fresh freshshell/fresh contrib/completion/fresh-completion.zsh --file=completion/_fresh
2020-04-03 10:46:12 +11:00
fresh thoughtbot/dotfiles zsh/completion/_ag --file=completion/_ag
fresh shells/zsh/completions --file=completion/
2019-07-22 16:21:32 +10:00
2020-05-26 13:35:21 +10:00
fresh romkatv/powerlevel10k . --file=vendor/powerlevel10k/
2020-05-26 13:33:59 +10:00
fresh zdharma/fast-syntax-highlighting . --file=vendor/zsh-fast-syntax-highlighting/
fresh zsh-users/zsh-history-substring-search . --file=vendor/zsh-history-substring-search/
fresh zsh-users/zsh-autosuggestions . --file=vendor/zsh-autosuggestions/
2019-07-22 16:21:32 +10:00
2017-04-02 10:32:51 +10:00
fresh garybernhardt/dotfiles bin/run-command-on-git-revisions --bin
2020-04-03 10:46:36 +11:00
fresh sivel/speedtest-cli speedtest.py --bin=~/bin/speedtest
2019-07-22 16:21:32 +10:00
fresh junegunn/fzf . --file=~/.fzf/
[ -f ~/.gitconfig.local ] || cp ~/.dotfiles/vcs/git/gitconfig.local ~/.gitconfig.local
2019-07-22 16:21:32 +10:00
fresh_after_build() {
2019-09-08 11:51:28 +10:00
# Fix executable bit
# https://github.com/freshshell/fresh/issues/159
chmod +x ~/.git_template/hooks/*
2020-04-02 14:17:05 +11:00
~/.fresh/source/junegunn/fzf/install --bin
# If WSL (Windows Subsystem for Linux)
if [ -n ${WSL_DISTRO_NAME:-} ] || grep -sqi microsoft /proc/sys/kernel/osrelease; then
if ! grep -qs '\[credential\]' ~/.gitconfig.local; then
cat >> ~/.gitconfig.local <<-EOF
# https://liamederzeel.com/store-git-credentials-in-wsl/
[credential]
helper = /mnt/c/Program\\\\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe
EOF
fi
fi
2019-09-08 11:51:28 +10:00
# Install Vim plugins
2020-04-02 14:17:05 +11:00
if [ -z "${SKIP_VIM_PLUGINS:-}" ]; then
vim='vim'
command -v nvim &>/dev/null && vim='nvim'
$vim +PlugUpdate +PlugClean +qall
fi
[ -d ~/.asdf/installs ] && find ~/.asdf/installs -maxdepth 2 -mindepth 2 -type d -printf '%P\n' | sort -Vru -t/ -k1,1 | tr / ' ' > ~/.tool-versions
2019-07-22 16:21:32 +10:00
}