Compare commits
No commits in common. "289cbfe53ae230cfd9ca0eadab9de4ea275ca583" and "8ef10b05aca75d2a3ab593e9035a09646965dc41" have entirely different histories.
289cbfe53a
...
8ef10b05ac
11 changed files with 18 additions and 87 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
color_file=$HOME/.config/$USER/color.yml
|
color_file=$HOME/.config/$USERNAME/color.yml
|
||||||
if ! test -f $color_file; then
|
if ! test -f $color_file; then
|
||||||
mkdir -p $HOME/.config/$USER
|
mkdir -p $HOME/.config/$USERNAME
|
||||||
echo light > $color_file
|
echo light > $color_file
|
||||||
fi
|
fi
|
||||||
old_color=$(cat $color_file)
|
old_color=$(cat $color_file)
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
[user]
|
|
||||||
email = andrew@mudflapinc.com
|
|
||||||
name = Andrew Tomaka
|
|
3
git/.config/git/gitconfig_oak
Normal file
3
git/.config/git/gitconfig_oak
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[user]
|
||||||
|
email = andrew@oak.tech
|
||||||
|
name = Andrew Tomaka
|
|
@ -39,4 +39,4 @@
|
||||||
cachetextconv = false
|
cachetextconv = false
|
||||||
|
|
||||||
[includeIf "gitdir:~/Source/work/"]
|
[includeIf "gitdir:~/Source/work/"]
|
||||||
path = ~/.config/git/gitconfig_mudflap
|
path = ~/.config/git/gitconfig_oak
|
||||||
|
|
45
install.sh
45
install.sh
|
@ -16,10 +16,9 @@ install_homebrew() {
|
||||||
install_shared_applications() {
|
install_shared_applications() {
|
||||||
brew install direnv fzf git stow the_silver_searcher tmux \
|
brew install direnv fzf git stow the_silver_searcher tmux \
|
||||||
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
|
vim zsh rbenv ruby-build tfenv nodenv node-build tig libpq gnupg llvm \
|
||||||
awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp \
|
awscli cmake jq watch gh nvim openssl@1.1 openssl@3 readline libyaml gmp
|
||||||
pyenv ripgrep
|
|
||||||
|
|
||||||
install_fzf
|
install_alacritty_terminfo
|
||||||
install_rust
|
install_rust
|
||||||
install_vim
|
install_vim
|
||||||
}
|
}
|
||||||
|
@ -43,7 +42,7 @@ install_alacritty() {
|
||||||
sudo mv /tmp/Alacritty.svg /usr/share/pixmaps/Alacritty.svg
|
sudo mv /tmp/Alacritty.svg /usr/share/pixmaps/Alacritty.svg
|
||||||
sudo desktop-file-install /tmp/Alacritty.desktop
|
sudo desktop-file-install /tmp/Alacritty.desktop
|
||||||
sudo update-desktop-database
|
sudo update-desktop-database
|
||||||
sudo ln -s /home/$USER/.cargo/bin/alacritty /usr/local/bin/alacritty
|
sudo ln -s /home/$USERNAME/.cargo/bin/alacritty /usr/local/bin/alacritty
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,34 +55,10 @@ install_alacritty_terminfo() {
|
||||||
https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info
|
https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info
|
||||||
|
|
||||||
sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info
|
sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info
|
||||||
|
$HOME/dotfiles/bin/bin/toggle-color-mode
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
install_tmux_terminfo() {
|
|
||||||
if ! infocmp tmux-256color > /dev/null; then
|
|
||||||
curl \
|
|
||||||
--fail \
|
|
||||||
--location \
|
|
||||||
--output /tmp/tmux-256color.src.gz \
|
|
||||||
https://invisible-island.net/datafiles/current/terminfo.src.gz
|
|
||||||
|
|
||||||
pushd /tmp
|
|
||||||
gunzip tmux-256color.src.gz
|
|
||||||
sed -i 's/pairs#0x10000/pairs#32767/g' tmux-256color.src
|
|
||||||
|
|
||||||
sudo tic -xe tmux-256color tmux-256color.src
|
|
||||||
popd
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
install_fzf() {
|
|
||||||
$(brew --prefix)/opt/fzf/install \
|
|
||||||
--xdg \
|
|
||||||
--no-update-rc \
|
|
||||||
--key-bindings \
|
|
||||||
--completion
|
|
||||||
}
|
|
||||||
|
|
||||||
install_rust() {
|
install_rust() {
|
||||||
if ! command -v rustup > /dev/null; then
|
if ! command -v rustup > /dev/null; then
|
||||||
curl \
|
curl \
|
||||||
|
@ -122,23 +97,20 @@ install_linux() {
|
||||||
|
|
||||||
# gui
|
# gui
|
||||||
install_alacritty
|
install_alacritty
|
||||||
install_alacritty_terminfo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install_darwin() {
|
install_darwin() {
|
||||||
install_homebrew
|
install_homebrew
|
||||||
[[ -f /etc/zprofile ]] && sudo mv /etc/{zprofile,zprofile.old}
|
sudo mv /etc/{zprofile,zprofile.old}
|
||||||
source ~/dotfiles/zsh/.zshenv
|
source ~/dotfiles/zsh/.zshenv
|
||||||
install_shared_applications
|
install_shared_applications
|
||||||
|
|
||||||
softwareupdate --install-rosetta --agree-to-license
|
softwareupdate --install-rosetta
|
||||||
brew install coreutils gnu-sed session-manager-plugin
|
brew install coreutils gnu-sed session-manager-plugin
|
||||||
|
|
||||||
# gui
|
# gui
|
||||||
brew install --cask docker rectangle slack google-chrome alacritty telegram \
|
brew install --cask docker rectangle slack google-chrome alacritty telegram \
|
||||||
discord element brave-browser zoom notion
|
discord element
|
||||||
|
|
||||||
install_tmux_terminfo
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
@ -154,8 +126,7 @@ main() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
stow alacritty bin git nvim ruby tmux zsh
|
stow alacritty bin git nvim ruby tmux zsh
|
||||||
|
install_alacritty_terminfo
|
||||||
$HOME/dotfiles/bin/bin/toggle-color-mode
|
|
||||||
}
|
}
|
||||||
|
|
||||||
main
|
main
|
||||||
|
|
|
@ -47,28 +47,11 @@ vim.keymap.set("n", "<Leader>pc", ":PackerClean<CR>")
|
||||||
--- telescope.nvim
|
--- telescope.nvim
|
||||||
vim.keymap.set("n", "<C-p>", function()
|
vim.keymap.set("n", "<C-p>", function()
|
||||||
require("telescope.builtin").find_files({
|
require("telescope.builtin").find_files({
|
||||||
hidden = true,
|
|
||||||
previewer = false,
|
|
||||||
})
|
|
||||||
end)
|
|
||||||
vim.keymap.set('n', '<Leader>ff', function()
|
|
||||||
require("telescope.builtin").find_files({
|
|
||||||
file_ignore_patterns = {".git/", "node_modules/"},
|
|
||||||
hidden = true,
|
|
||||||
no_ignore = true,
|
|
||||||
previewer = false,
|
|
||||||
})
|
|
||||||
end)
|
|
||||||
vim.keymap.set('n', '<Leader>fg', function()
|
|
||||||
require("telescope.builtin").live_grep({
|
|
||||||
file_ignore_patterns = {".git/", "node_modules/"},
|
file_ignore_patterns = {".git/", "node_modules/"},
|
||||||
hidden = true,
|
hidden = true,
|
||||||
previewer = false,
|
previewer = false,
|
||||||
})
|
})
|
||||||
end)
|
end)
|
||||||
vim.keymap.set('n', '<Leader>fb', function()
|
|
||||||
require("telescope.builtin").buffers()
|
|
||||||
end)
|
|
||||||
|
|
||||||
--- whitespace.nvim
|
--- whitespace.nvim
|
||||||
require("whitespace-nvim").setup({
|
require("whitespace-nvim").setup({
|
||||||
|
|
|
@ -36,7 +36,7 @@ vim.api.nvim_create_autocmd({"WinLeave"}, {
|
||||||
--- background matching terminal
|
--- background matching terminal
|
||||||
function ChangeBackground()
|
function ChangeBackground()
|
||||||
local home = os.getenv("HOME")
|
local home = os.getenv("HOME")
|
||||||
local user = os.getenv("USER")
|
local user = os.getenv("USERNAME")
|
||||||
local file = io.open(home.."/.config/"..user.."/color.yml", "rb")
|
local file = io.open(home.."/.config/"..user.."/color.yml", "rb")
|
||||||
local background = file:read()
|
local background = file:read()
|
||||||
file:close()
|
file:close()
|
||||||
|
|
|
@ -2,11 +2,7 @@ local ensure_packer = function()
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
fn.system({
|
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
||||||
'git', 'clone', '--depth', '1',
|
|
||||||
'https://github.com/wbthomason/packer.nvim',
|
|
||||||
install_path
|
|
||||||
})
|
|
||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
@ -39,14 +35,6 @@ return require('packer').startup(function(use)
|
||||||
|
|
||||||
use "gruvbox-community/gruvbox"
|
use "gruvbox-community/gruvbox"
|
||||||
|
|
||||||
-- languages
|
|
||||||
use "fatih/vim-go"
|
|
||||||
use "hashivim/vim-terraform"
|
|
||||||
use "leafgarland/typescript-vim"
|
|
||||||
use "tpope/vim-markdown"
|
|
||||||
use "tpope/vim-rails"
|
|
||||||
use "vim-ruby/vim-ruby"
|
|
||||||
|
|
||||||
if packer_bootstrap then
|
if packer_bootstrap then
|
||||||
require('packer').sync()
|
require('packer').sync()
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,11 +34,6 @@ if which nodenv > /dev/null; then
|
||||||
(nodenv rehash &) 2> /dev/null
|
(nodenv rehash &) 2> /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if which pyenv > /dev/null; then
|
|
||||||
eval "$(pyenv init --no-rehash -)"
|
|
||||||
(pyenv rehash &) 2> /dev/null
|
|
||||||
fi
|
|
||||||
|
|
||||||
autoload compinit -Uz
|
autoload compinit -Uz
|
||||||
setopt EXTENDEDGLOB
|
setopt EXTENDEDGLOB
|
||||||
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.m+1) ]]; then
|
if [[ -n ${ZDOTDIR}/.zcompdump(#qN.m+1) ]]; then
|
||||||
|
@ -48,4 +43,4 @@ else
|
||||||
fi
|
fi
|
||||||
unsetopt EXTENDEDGLOB
|
unsetopt EXTENDEDGLOB
|
||||||
|
|
||||||
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $XDG_CONFIG_HOME/fzf/fzf.zsh
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
||||||
|
|
|
@ -39,7 +39,6 @@ alias gm="git merge"
|
||||||
alias gma="git merge --abort"
|
alias gma="git merge --abort"
|
||||||
alias gmc="git merge --continue"
|
alias gmc="git merge --continue"
|
||||||
alias gmr="git most-recent-by-branch"
|
alias gmr="git most-recent-by-branch"
|
||||||
alias gms="git merge --squash"
|
|
||||||
alias gp="git push"
|
alias gp="git push"
|
||||||
alias gpf="git push --force"
|
alias gpf="git push --force"
|
||||||
alias gpl="git pull"
|
alias gpl="git pull"
|
||||||
|
@ -53,7 +52,6 @@ alias grbi="git rebase --interactive"
|
||||||
alias grc="git rm --cached"
|
alias grc="git rm --cached"
|
||||||
alias grh="git reset --hard"
|
alias grh="git reset --hard"
|
||||||
alias grm="git rm"
|
alias grm="git rm"
|
||||||
alias gst="git log $(git describe --tags --abbrev=0)..HEAD --no-merges --oneline"
|
|
||||||
alias gup="git-branch-delete-merged"
|
alias gup="git-branch-delete-merged"
|
||||||
alias Grep='grep'
|
alias Grep='grep'
|
||||||
alias l="ls"
|
alias l="ls"
|
||||||
|
|
|
@ -1,14 +1,11 @@
|
||||||
ZDOTDIR=$HOME/.config/zsh
|
ZDOTDIR=$HOME/.config/zsh
|
||||||
|
|
||||||
XDG_CONFIG_HOME="$HOME/.config"
|
|
||||||
|
|
||||||
PERSONAL_BIN_PATH="$HOME/bin"
|
PERSONAL_BIN_PATH="$HOME/bin"
|
||||||
PERSONAL_FPATH="$ZDOTDIR/completions"
|
PERSONAL_FPATH="$ZDOTDIR/completions"
|
||||||
|
|
||||||
NODENV_PATH="$HOME/.nodenv/bin"
|
NODENV_PATH="$HOME/.nodenv/bin"
|
||||||
RBENV_PATH="$HOME/.rbenv/bin"
|
RBENV_PATH="$HOME/.rbenv/bin"
|
||||||
TFENV_PATH="$HOME/.tfenv/bin"
|
TFENV_PATH="$HOME/.tfenv/bin"
|
||||||
PYENV_PATH="$HOME/.pyenv/bin"
|
|
||||||
|
|
||||||
CARGO_PATH="$HOME/.cargo/bin"
|
CARGO_PATH="$HOME/.cargo/bin"
|
||||||
|
|
||||||
|
@ -46,7 +43,6 @@ fi
|
||||||
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
|
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
|
||||||
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
|
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
|
||||||
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
|
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
|
||||||
[[ -d "$PYENV_PATH" ]] && PATH="$PYENV_PATH:$PATH"
|
|
||||||
[[ -d "$CARGO_PATH" ]] && PATH="$CARGO_PATH:$PATH"
|
[[ -d "$CARGO_PATH" ]] && PATH="$CARGO_PATH:$PATH"
|
||||||
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
|
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
|
||||||
[[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH"
|
[[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH"
|
||||||
|
|
Loading…
Add table
Reference in a new issue