Compare commits

..

39 Commits

Author SHA1 Message Date
Vasili Svirydau 6c0b12c362 хуй там плавал 2021-11-16 22:47:18 +00:00
Vasili Svirydau e743c663ac Some changes from work machine 2021-11-16 20:33:34 +00:00
Vasili Svirydau 6b2245dd16 mac changes 2021-04-28 23:47:04 -07:00
Vasili Svirydau cf075eb3cc . 2021-04-16 13:43:22 -07:00
Vasili Svirydau cc283d92bd fixed quoting in setup 2021-03-23 16:28:51 -07:00
Vasili Svirydau 4744842ce6 Added setup scripts 2021-03-23 16:26:57 -07:00
Vasili Svirydau 86ccd065a2 Added X forwarding for WSL 2021-03-22 15:39:57 -07:00
Vasili Svirydau fa5b1a42d0 got rid of submodules 2021-03-22 13:52:07 -07:00
Vasili Svirydau df34ca588a . 2021-01-29 16:00:30 -08:00
Vasili Svirydau a6d31719c5 updated submodules 2020-07-18 15:07:34 -07:00
vasili a61a527842 fixed paths 2019-12-09 14:16:18 -08:00
vasili 8a0f0dcee0 Merged down 2019-12-09 10:38:31 -08:00
vasili 0dfa4f4a77 finalizer 2019-12-08 18:24:20 -08:00
vasili 258ddc1fa9 Initialize submodules 2019-12-08 17:57:07 -08:00
vasili dd1c9dfe37 bash.d setup 2019-12-08 17:54:54 -08:00
vasili d5021187eb Conditional cargo bin path 2019-12-08 17:52:07 -08:00
vasili a64d42bde0 more reorg 2019-12-08 16:20:23 -08:00
vasili 1762d6246f splitting into more modular structure 2019-12-08 15:39:04 -08:00
Vasili Svirydau ab1ef3fcbb Added gitignore.io alias 2019-07-09 06:21:37 +00:00
Vasili Svirydau de28d335fd Merge branch 'master' of github.com:/vsviridov/dotfiles 2018-02-20 10:30:12 -08:00
Vasili Svirydau 6e35d9baec bcompare 2018-02-20 10:30:04 -08:00
Vasili Sviridov 4085a38ffb Update tmux.conf
reattach to shell, osx specific
2018-02-20 10:19:47 -08:00
vasili 407bcf459d merged 2016-11-15 16:58:23 +00:00
vasili 99050a2e0e tmux sessions, bcomp 2016-11-15 08:56:35 -08:00
vasili bebd730763 Merge branch 'master' of github.com:vsviridov/dotfiles 2016-06-17 17:04:52 -07:00
vasili f82e59737d tmux shenanigans 2016-06-17 17:04:42 -07:00
vasili 8ebc4286fd Now with rubocop 2015-10-22 16:11:25 -07:00
vasili 69aae18ced merged down 2015-09-03 02:15:07 +00:00
vasili 0d02d60068 make install script shellcheck compliant 2015-09-03 02:14:02 +00:00
vasili 31dd6c6630 merged from upstream 2015-06-24 18:48:31 -07:00
Vasili Svirydau f1221bbe3b changed stuff 2015-06-24 18:47:51 -07:00
vasili ae1e8fd851 fixed email 2015-03-05 14:40:22 -05:00
vasili 0bfedd9ea1 Merge branch 'master' of github.com:vsviridov/dotfiles 2013-07-05 23:11:37 +00:00
Vasili Svirydau 2ee0f86ff3 tmux versioning attempt 2013-07-03 11:53:03 -07:00
Vasili Svirydau 4e3ce53b1e work tmux additions 2013-07-02 11:30:49 -07:00
vasili aad4a24dd7 Ignore Readme 2013-06-30 06:05:59 +00:00
Vasili Sviridov aa89ae3129 Create README.md 2013-06-29 22:56:27 -07:00
vasili d4b32a5364 Added simple git config 2013-06-30 05:54:13 +00:00
vasili 407f95864d Initial Commit 2013-06-30 05:52:35 +00:00
39 changed files with 315 additions and 395 deletions
-18
View File
@@ -1,18 +0,0 @@
{{- $email := promptStringOnce . "email" "Email address" -}}
{{- $fullName := promptStringOnce . "fullName" "Full Name" -}}
[data]
email = {{ $email | quote }}
fullName = {{ $fullName | quote }}
[edit]
command = "nvim"
[merge]
command = "bcomp"
args = [
{{ printf "%q" "{{ .Destination }}" }},
{{ printf "%q" "{{ .Source }}" }},
{{ printf "%q" "{{ .Target }}" }},
{{ printf "%q" "{{ .Source }}" }},
]
+1
View File
@@ -0,0 +1 @@
*.local.sh
+5 -7
View File
@@ -1,8 +1,6 @@
Installation Steps dotfiles
================== ========
* Install `mise`: Configuration files
* `curl https://mise.run | sh`
* Bootstrap `chezmoi` run setup.sh
* `mise exec chezmoi@latest -- chezmoi init --apply ssh://gitea@git.exceede.com:22422/vasili/dotfiles.git`
* `chezmoi apply`
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
# shellcheck disable=SC2034
DOTFILES=$( cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd || return)
function finalize {
unset DOTFILES
}
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
function dotenv {
export "$(grep -E -v '^#' .env | xargs)"
}
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
export NO_AT_BRIDGE=1
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
export ELASTIC_APM_DISABLE_SEND=true
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
export DOTNET_CLI_TELEMETRY_OPTOUT=1
+1
View File
@@ -0,0 +1 @@
export PACT_DO_NOT_TRACK=1
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
export PATH="./node_modules/.bin:$PATH"
if [ -e "$HOME/.cargo/bin" ]; then
export PATH="$HOME/.cargo/bin:$PATH"
fi
if [ -e "$HOME/.bin" ]; then
export PATH="$HOME/.bin:$PATH"
fi
if [ -w "$HOME/go/bin" ]; then
export PATH="$HOME/go/bin:$PATH"
fi
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
if test -d ~/.asdf; then
source $HOME/.asdf/asdf.sh
source $HOME/.asdf/completions/asdf.bash
fi
+17
View File
@@ -0,0 +1,17 @@
#!/bin/bash
function gr() {
cd "$(git rev-parse --show-toplevel)" || return
}
function tdd() {
set +e
path=$1
shift
echo "Path: \"$path\""
echo "Command: \"$@\""
while [[ $? == 0 ]]
inotifywait -r "$path" -e create -qq;
eval "$@"
do echo $?; done;
}
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
function gi() {
curl -sL "https://www.toptal.com/developers/gitignore/api/$*";
}
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
if test -d ~/.nvm; then
NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
export NVM_DIR
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
fi
function dotfiles_install_nvm() {
git clone git@github.com:nvm-sh/nvm.git ~/.nvm
}
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
if command -v rbenv > /dev/null; then
eval "$(rbenv init -)"
fi
function dotfiles_install_rbenv {
sudo apt install rbenv
}
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
export ASPNETCORE_ENVIRONMENT=Development
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
if uname -r | grep WSL > /dev/null; then
DISPLAY=$(ip route | awk '/^default/{print $3; exit}'):0
export LIBGL_ALWAYS_INDIRECT=1
export DISPLAY
fi
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
finalize
-2
View File
@@ -1,2 +0,0 @@
git:
autoFetch: false
-21
View File
@@ -1,21 +0,0 @@
[tools]
chezmoi = "latest"
fnox = "latest"
jq = "latest"
lazygit = "latest"
lua-language-server = "latest"
neovim = "nightly"
node = "21"
rg = "latest"
starship = "latest"
"npm:prettier" = "latest"
"npm:typescript-language-server" = "latest"
"npm:eslint" = "latest"
"npm:graphql-language-service-cli" = "latest"
"npm:bash-language-server" = "latest"
"npm:yaml-language-server" = "latest"
"npm:vscode-langservers-extracted" = "latest"
tmux = "latest"
[env]
RIPGREP_CONFIG_PATH = "{{ env.HOME }}/.config/ripgrep/config"
-163
View File
@@ -1,163 +0,0 @@
vim.o.number = true
vim.o.signcolumn = "yes"
vim.o.winborder = "rounded"
vim.g.loaded_perl_provider = 0
vim.g.airline_powerline_fonts = 1
vim.o.tabstop = 2
vim.o.shiftwidth = 2
vim.o.expandtab = true
vim.cmd([[set listchars=tab:▸\ ,eol:¬]])
vim.keymap.set("n", "<leader>r", ":edit $MYVIMRC<cr>")
vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
vim.keymap.set("n", "<leader>D", vim.lsp.buf.definition)
vim.keymap.set("n", "<leader>U", function() MiniExtra.pickers.lsp({ scope = "references" }) end)
vim.keymap.set("n", "<leader>p", vim.lsp.buf.hover, { desc = "LSP Hover" })
vim.keymap.set("n", "<leader>l", ":set list!<cr>")
vim.keymap.set("n", "<leader>]", ":bn<cr>")
vim.keymap.set("n", "<leader>[", ":bp<cr>")
vim.keymap.set("n", "<leader>d", ":bd<cr>")
vim.keymap.set("n", "<esc><esc>", "<esc>:nohlsearch<cr><esc>")
vim.keymap.set("n", "<space>", "zz")
vim.keymap.set("n", "<leader>w", ":update<cr>")
vim.keymap.set("n", "<c-p>", function() FzfLua.files() end)
vim.keymap.set("n", "<leader>h", ":Pick help<cr>")
vim.keymap.set("n", "<leader>cz", function() require("chezmoi.pick").mini() end) -- Pick from chezmoi managed files
vim.pack.add(
{
{ src = "https://github.com/andythigpen/nvim-coverage" }, -- Code coverage visualuzer
{ src = "https://github.com/folke/lazydev.nvim" }, -- Lua Vim types
{ src = "https://github.com/j-hui/fidget.nvim" }, -- LSP Status Popup
{
src = "https://github.com/kylechui/nvim-surround",
version = vim.version.range("^4.0.0")
}, -- Surround
{ src = "https://github.com/lewis6991/gitsigns.nvim" }, -- Show git changes in the gutter
{ src = "https://github.com/mfussenegger/nvim-lint" }, -- Linter
{ src = "https://github.com/neovim/nvim-lspconfig" }, -- Common LSP Configurations
{ src = "https://github.com/nvim-lua/plenary.nvim" }, -- Base functions library
{ src = "https://github.com/nvim-mini/mini.extra" }, -- Additional things for mini tools
{ src = "https://github.com/nvim-mini/mini.icons" }, -- Icons for Ctrl-P
{ src = "https://github.com/nvim-mini/mini.pick" }, -- Ctrl-P Alternative
{ src = "https://github.com/rachartier/tiny-inline-diagnostic.nvim" }, -- Inline diagnostics
{ src = "https://github.com/rebelot/kanagawa.nvim" }, -- Theme
{ src = "https://github.com/sbdchd/neoformat" }, -- Formatter
{ src = "https://github.com/tpope/vim-fugitive" }, -- Git bindings
{ src = "https://github.com/vim-airline/vim-airline-themes" }, -- Status bar theme
{ src = "https://github.com/vim-airline/vim-airline" }, -- Status bar
{ src = "https://github.com/xvzc/chezmoi.nvim" }, -- Chezmoi dotfiles manager
{ src = "https://github.com/esmuellert/nvim-eslint" }, -- Linter
{ src = "https://github.com/ibhagwan/fzf-lua" }, -- FZF Fuzzy Finder
}
)
-- Airline
vim.cmd [[
let g:airline#extensions#tabline#enabled = 1
]]
-- Ctrl-P
require("mini.pick").setup()
require("mini.icons").setup()
require("mini.extra").setup()
require("fzf-lua").setup({ 'fzf-tmux' })
-- Coverage
require("coverage").setup()
-- Lint
require("lint").linters_by_ft = {
sh = { "shellcheck" }
}
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
callback = function()
require("lint").try_lint()
end,
})
-- Theme
vim.cmd.colorscheme "kanagawa-dragon"
-- LSP
vim.lsp.enable({ "lua_ls", "ts_ls", "bashls", "yamlls", "graphql", "jsonls" })
---@type vim.lsp.Config
local lua_ls_config = {
---@type lspconfig.settings.lua_ls
settings = {
Lua = {
workspace = {
library = vim.api.nvim_get_runtime_file("", true),
}
}
}
}
vim.lsp.config("lua_ls", lua_ls_config)
-- Autocomplete
vim.o.autocomplete = true
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = assert(vim.lsp.get_client_by_id(ev.data.client_id))
if client:supports_method('textDocument/completion') then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
end
vim.keymap.set('i', '<C-Space>', function()
vim.lsp.completion.get()
end, { buffer = ev.buf })
end,
})
vim.opt.complete:append("o")
vim.opt.completeopt = { 'menuone', 'noselect', 'fuzzy' }
-- Fidget
require("fidget").setup {}
-- Diagnostic
require('tiny-inline-diagnostic').setup()
vim.diagnostic.config({ virtual_text = false })
-- Chezmoi
require("chezmoi").setup {
edit = {
watch = false,
force = false,
ignore_patterns = {
"run_onchange_.*",
"run_once_.*",
"%.chezmoiignore",
"%.chezmoitemplate",
-- Add custom patterns here
},
},
events = {
on_open = {
notification = {
enable = true,
msg = "Opened a chezmoi-managed file",
opts = {},
},
},
on_watch = {
notification = {
enable = true,
msg = "This file will be automatically applied",
opts = {},
},
},
on_apply = {
notification = {
enable = true,
msg = "Successfully applied",
opts = {},
},
},
},
}
-- Surround
require("nvim-surround").setup({})
-- Linter
require("nvim-eslint").setup({})
-121
View File
@@ -1,121 +0,0 @@
{
"plugins": {
"chezmoi.nvim": {
"rev": "4167bbec76f693f481a5243f1be521ff0ccf1a6d",
"src": "https://github.com/xvzc/chezmoi.nvim"
},
"fidget.nvim": {
"rev": "82404b196e73a00b1727a91903beef5ddc319d22",
"src": "https://github.com/j-hui/fidget.nvim"
},
"fzf-lua": {
"rev": "988416cc782dfe28bff3f0da9b8c943b236cd86a",
"src": "https://github.com/ibhagwan/fzf-lua"
},
"gitsigns.nvim": {
"rev": "25050e4ed39e628282831d4cbecb1850454ce915",
"src": "https://github.com/lewis6991/gitsigns.nvim"
},
"kanagawa.nvim": {
"rev": "bb85e4bfc8d89b0e62c8fa53ccdd13d12e2f77b3",
"src": "https://github.com/rebelot/kanagawa.nvim"
},
"lazydev.nvim": {
"rev": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d",
"src": "https://github.com/folke/lazydev.nvim"
},
"mason.nvim": {
"rev": "16ba83bfc8a25f52bb545134f5bee082b195c460",
"src": "https://github.com/mason-org/mason.nvim"
},
"mini.extra": {
"rev": "ffb7b3a726e059b011b3655f26e61ec6f7cf5b84",
"src": "https://github.com/nvim-mini/mini.extra"
},
"mini.icons": {
"rev": "520995f1d75da0e4cc901ee95080b1ff2bc46b94",
"src": "https://github.com/nvim-mini/mini.icons"
},
"mini.pick": {
"rev": "34fdef3b0966974378c4f39e3ddb54ffc628fbe9",
"src": "https://github.com/nvim-mini/mini.pick"
},
"neoformat": {
"rev": "9d95e5ca3ab263363758d5b1d7a174a30556ab2d",
"src": "https://github.com/sbdchd/neoformat"
},
"nvim": {
"rev": "0303a7208dba448c459767486a38a6ec05c4216b",
"src": "https://github.com/catppuccin/nvim"
},
"nvim-coverage": {
"rev": "a939e425e363319d952a6c35fb3f38b34041ded2",
"src": "https://github.com/andythigpen/nvim-coverage"
},
"nvim-eslint": {
"rev": "3c893af4152a417742e6ce96d9468b3f26359006",
"src": "https://github.com/esmuellert/nvim-eslint"
},
"nvim-java": {
"rev": "602a5f7fa92f9c1d425a2159133ff9de86842f0a",
"src": "https://github.com/nvim-java/nvim-java"
},
"nvim-java-core": {
"rev": "229ebcdfa33c75cf746f97c46c2893b2de3626e5",
"src": "https://github.com/nvim-java/nvim-java-core"
},
"nvim-java-dap": {
"rev": "55f239532f7a3789d21ea68d1e795abc77484974",
"src": "https://github.com/nvim-java/nvim-java-dap"
},
"nvim-java-refactor": {
"rev": "b51a57d862338999059e1d1717df3bc80a3a15c0",
"src": "https://github.com/nvim-java/nvim-java-refactor"
},
"nvim-java-test": {
"rev": "7f0f40e9c5b7eab5096d8bec6ac04251c6e81468",
"src": "https://github.com/nvim-java/nvim-java-test"
},
"nvim-lint": {
"rev": "d48f3a76189d03b2239f6df1b2f7e3fa8353743b",
"src": "https://github.com/mfussenegger/nvim-lint"
},
"nvim-lspconfig": {
"rev": "229b79051b380377664edc4cbd534930154921a1",
"src": "https://github.com/neovim/nvim-lspconfig"
},
"nvim-surround": {
"rev": "2e93e154de9ff326def6480a4358bfc149d5da2c",
"src": "https://github.com/kylechui/nvim-surround",
"version": "4.0.0 - 5.0.0"
},
"plenary.nvim": {
"rev": "74b06c6c75e4eeb3108ec01852001636d85a932b",
"src": "https://github.com/nvim-lua/plenary.nvim"
},
"spring-boot.nvim": {
"rev": "98c6ff1dcdda943d341bba3c00ae9d190a2e5f7d",
"src": "https://github.com/JavaHello/spring-boot.nvim"
},
"tiny-inline-diagnostic.nvim": {
"rev": "680762989e8b05a72e90769959d0fb9a557e6917",
"src": "https://github.com/rachartier/tiny-inline-diagnostic.nvim"
},
"vim-airline": {
"rev": "f02ddb633868d0b1e83f2612b5b25ef1ecd210db",
"src": "https://github.com/vim-airline/vim-airline"
},
"vim-airline-themes": {
"rev": "77aab8c6cf7179ddb8a05741da7e358a86b2c3ab",
"src": "https://github.com/vim-airline/vim-airline-themes"
},
"vim-fugitive": {
"rev": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0",
"src": "https://github.com/tpope/vim-fugitive"
},
"vim-hybrid": {
"rev": "cc58baabeabc7b83768e25b852bf89c34756bf90",
"src": "https://github.com/w0ng/vim-hybrid"
}
}
}
-2
View File
@@ -1,2 +0,0 @@
--hidden
--smart-case
-31
View File
@@ -1,31 +0,0 @@
[gcloud]
format = 'on [$symbol(\($project\))]($style) '
[docker_context]
disabled=true
[direnv]
disabled=true
[env_var.NEXT_PUBLIC_ENVIRONMENT_ID]
[dotnet]
disabled = true
[kubernetes]
disabled = false
[[kubernetes.contexts]]
context_pattern = "gke_lt-shipyard-lower_northamerica-northeast1_nane1-lower-gke1"
context_alias = "nane1"
style = "green"
[[kubernetes.contexts]]
context_pattern = "gke_lt-sre-shipyard_northamerica-northeast1_banting"
context_alias = "banting"
style = "red"
[[kubernetes.contexts]]
context_pattern = "gke_ld-shipyard_us-east1_bluenose"
context_alias = "bluenose"
style = "blue"
-23
View File
@@ -1,23 +0,0 @@
[user]
name = {{ .fullName | quote }}
email = {{ .email | quote }}
[push]
autoSetupRemote = true
[diff]
tool = bc3
[difftool "bc3"]
trustExitCode = true
[merge]
tool = bc3
[mergetool "bc3"]
trustExitCode = true
[pull]
rebase = true
[alias]
parent = "!git show-branch | grep '*' | grep -v \"$(git rev-parse --abbrev-ref HEAD)\" | head -n1 | sed 's/.*\\[\\(.*\\)\\].*/\\1/' | sed 's/[\\^~].*//' #"
[alias]
cop = "!f() { git checkout \"$(git parent)\"; }; f"
[alias]
children = "!f() { git branch -a --contains \"$(git rev-parse HEAD)\"; }; f"
[init]
defaultBranch = master
+6
View File
@@ -0,0 +1,6 @@
{
"version": 1,
"cli": {
"analytics": false
}
}
+6
View File
@@ -0,0 +1,6 @@
[elixir]
disabled=true
[kubernetes]
disabled=false
# format = 'on [⛵ $context \($namespace\)](dimmed green) '
+35
View File
@@ -0,0 +1,35 @@
[user]
name = Vasili Svirydau
email = vasili.svirydau@sterlingcapitalbrokers.com
[push]
default = simple
[core]
editor = /usr/bin/vim
[merge]
tool = bcompare
[diff]
tool = bcompare
[mergetool "bcompare"]
trustExitCode = true
cmd = bcompare "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
[mergetool "meld"]
cmd = meld "$LOCAL" "$BASE" "$REMOTE" --output "$MERGED"
[difftool "bcompare"]
trustExitCode = true
cmd = bcompare \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\"
[alias]
ignore = "!gi() { curl -sL https://www.gitignore.io/api/$@ ;}; gi"
[rebase]
instructionFormat = (%an <%ae>) %s
[pull]
rebase = true
ff = only
+22
View File
@@ -0,0 +1,22 @@
# Beware! This file is rewritten every time htop exits.
# The parser is also very primitive, and not human-friendly.
# (I know, it's in the todo list).
fields=0 48 17 18 38 39 40 2 46 47 49 1
sort_key=47
sort_direction=1
hide_threads=0
hide_kernel_threads=1
hide_userland_threads=1
shadow_other_users=1
highlight_base_name=1
highlight_megabytes=1
highlight_threads=1
tree_view=1
header_margin=1
detailed_cpu_time=0
color_scheme=0
delay=15
left_meters=AllCPUs Memory Swap
left_meter_modes=1 1 1
right_meters=Tasks LoadAverage Uptime
right_meter_modes=2 2 2
@@ -1,10 +1,9 @@
set -g default-terminal "tmux-256color" set -g default-terminal "xterm-256color"
set -g base-index 1 set -g base-index 1
set -g set-titles on set -g set-titles on
set -g status-keys vi set -g status-keys vi
# Faster Command Sequences # Faster Command Sequences
set -s escape-time 0 set -s escape-time 0
set-option -g focus-events on
set -g set-clipboard on set -g set-clipboard on
set -g history-limit 50000 set -g history-limit 50000
@@ -20,7 +19,7 @@ unbind C-a
unbind C-b unbind C-b
set -g prefix C-a set -g prefix C-a
bind C-a last-window bind-key C-a last-window
set -g terminal-overrides 'xterm*:smcup@:rmcup@' # enable native xterm scrolling where available set -g terminal-overrides 'xterm*:smcup@:rmcup@' # enable native xterm scrolling where available
@@ -37,7 +36,7 @@ set -g mouse on
set-option -ga update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY" set-option -ga update-environment "DISPLAY SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION WINDOWID XAUTHORITY"
# new-session # always create a session (can always `tmux a`) new-session # always create a session (can always `tmux a`)
set -g status on set -g status on
set -g status-interval 15 set -g status-interval 15
@@ -51,6 +50,3 @@ set -g status-right "#[fg=colour235,bg=colour237,nobold,nounderscore,noitalics]
set -g status-right-length 100 set -g status-right-length 100
set -g status-right-style default set -g status-right-style default
set -g status-style fg=black,bg=colour237 set -g status-style fg=black,bg=colour237
bind h display-popup -T "htop" -E -w 90% -h 90% "htop"
bind g display-popup -T "lazygit" -E -w 90% -h 90% "cd #{pane_current_path} && lazygit"
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
if [[ $SHELL =~ "bash" ]]; then
SIGIL="# Managed by dotfiles"
if ! grep "$SIGIL" ~/.bashrc > /dev/null; then
(
echo "$SIGIL"
echo "for f in $DOTFILES/bash.d/*.sh; do source \"\$f\"; done"
echo "unset f"
) >> ~/.bashrc
fi
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
if ! command -v brew > /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
fi
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
if [[ "$OSTYPE" == "darwin"* ]]; then
if ! command -v reattach-to-user-namespace > /dev/null; then
brew install reattach-to-user-namespace
fi
fi
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
if ! command -v shellcheck > /dev/null; then
did_install=0
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt update > /dev/null && sudo apt install shellcheck > /dev/null;
did_install=1
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install shellcheck
did_install=1
fi
if [[ "$did_install" == 1 ]]; then
echo "Installed Shellcheck"
else
echo "Did NOT install Shellcheck"
fi
fi
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
if ! command -v /usr/local/bin/starship > /dev/null; then
curl -fsSL https://starship.rs/install.sh | bash
fi
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
if ! test -d ~/.asdf; then
echo "Cloning asdf-vm"
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.0
fi
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
DOTFILES=$( cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd || return)
GITCONFIG="${DOTFILES}/bash.d/10-gitconfig.local.sh"
if [[ -z "${GIT_AUTHOR_NAME}" ]]; then
read -p 'Git Author Name: ' GIT_AUTHOR_NAME
fi
if [[ -z "${GIT_AUTHOR_EMAIL}" ]]; then
read -p 'Git Author Email: ' GIT_AUTHOR_EMAIL
fi
cat > "$GITCONFIG" <<EOL
#!/bin/bash
export GIT_AUTHOR_NAME="${GIT_AUTHOR_NAME}"
export GIT_AUTHOR_EMAIL="${GIT_AUTHOR_EMAIL}"
EOL
unset GIT_AUTHOR_NAME
unset GIT_AUTHOR_EMAIL
Executable
+55
View File
@@ -0,0 +1,55 @@
#!/bin/bash
OLD_PWD=$PWD
timestamp=$(date '+%m%d%Y%H%M')
function finish {
cd "$OLD_PWD" || exit;
}
trap finish EXIT
function overlay {
local source="$1"
local prefix="$2"
cd "$source" || exit;
find . -maxdepth 1 -type f -printf "%f\0" | while IFS= read -r -d $'\0' P; do
local target="${prefix}/${P}"
local backup="${prefix}/${P}.orig.${timestamp}"
# echo "$PWD/$P" "->" "$target"
# skip existing links
if [ -h "$target" ]; then continue; fi
# move existing dir out of the way
if [ -e "$target" ]; then
if [ -e "$backup" ]; then
echo "want to override $target but backup exists"
continue;
fi
echo -n "Backup ${P}"
mv -v "$target" "$backup"
fi
# create link
ln -v -s "$PWD/$P" "$target"
# ensure permissions
chmod -R o-rwx,g-rwx "$target"
done
}
# From aaronjensen/dotfiles
DOTFILES=$( cd "$(dirname "${BASH_SOURCE[0]}")" && pwd || return)
overlay "$DOTFILES/dotfiles" "$HOME"
overlay "$DOTFILES/dotfiles/.config" "$HOME/.config"
# shellcheck source=/dev/null
for f in "$DOTFILES/setup.d/"*.sh; do source "$f"; done
unset f;