Adding some stuff before migration

This commit is contained in:
Hunter Haugen 2023-08-13 22:53:58 -07:00
parent 8538bbea9c
commit ba52bb0f6a
Signed by: hunner
GPG key ID: EF99694AA599DDAD
10 changed files with 74 additions and 20 deletions

View file

@ -2,7 +2,6 @@
THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT
`lvim` is the global options object `lvim` is the global options object
]] ]]
-- vim options -- vim options
vim.opt.shiftwidth = 2 vim.opt.shiftwidth = 2
vim.opt.tabstop = 2 vim.opt.tabstop = 2
@ -12,7 +11,7 @@ vim.opt.relativenumber = false
lvim.log.level = "info" lvim.log.level = "info"
lvim.format_on_save = { lvim.format_on_save = {
enabled = true, enabled = true,
-- pattern = "*.lua", pattern = "*.tf",
timeout = 1000, timeout = 1000,
} }
-- to disable icons and use a minimalist setup, uncomment the following -- to disable icons and use a minimalist setup, uncomment the following
@ -103,6 +102,13 @@ lvim.builtin.treesitter.auto_install = true
-- }, -- },
-- } -- }
local has_words_before = function()
if vim.api.nvim_buf_get_option(0, "buftype") == "prompt" then return false end
local line, col = unpack(vim.api.nvim_win_get_cursor(0))
return col ~= 0 and vim.api.nvim_buf_get_text(0, line - 1, 0, line - 1, col, {})[1]:match("^%s*$") == nil
end
-- -- Additional Plugins <https://www.lunarvim.org/docs/plugins#user-plugins> -- -- Additional Plugins <https://www.lunarvim.org/docs/plugins#user-plugins>
lvim.plugins = { lvim.plugins = {
-- { -- {
@ -127,7 +133,7 @@ lvim.plugins = {
"Glgrep", "Glgrep",
"Gedit" "Gedit"
}, },
ft = {"fugitive"} ft = { "fugitive" }
}, },
{ "tpope/vim-rhubarb" }, { "tpope/vim-rhubarb" },
{ "rodjek/vim-puppet" }, { "rodjek/vim-puppet" },
@ -145,22 +151,44 @@ lvim.plugins = {
}) })
end, end,
}, },
{ "zbirenbaum/copilot.lua", {
"zbirenbaum/copilot.lua",
event = { "VimEnter" }, event = { "VimEnter" },
config = function() config = function()
vim.defer_fn(function() vim.defer_fn(function()
require("copilot").setup { require("copilot").setup {
plugin_manager_path = get_runtime_dir() .. "/site/pack/packer", plugin_manager_path = get_runtime_dir() .. "/site/pack/packer",
suggestion = { enabled = false },
panel = { enabled = false },
} }
end, 100) end, 100)
end, end,
}, },
{ "zbirenbaum/copilot-cmp", {
"zbirenbaum/copilot-cmp",
after = { "copilot.lua", "nvim-cmp" }, after = { "copilot.lua", "nvim-cmp" },
config = function () config = function()
require("copilot_cmp").setup() require("copilot_cmp").setup({
mapping = {
["<Tab>"] = vim.schedule_wrap(function(fallback)
if lvim.builtin.cmp.visible() and has_words_before() then
lvim.builtin.cmp.select_next_item({ behavior = lvim.builtin.cmp.SelectBehavior.Select })
else
fallback()
end
end),
},
})
end end
}, },
{
"iamcco/markdown-preview.nvim",
build = "cd app && npm install",
ft = "markdown",
config = function()
vim.g.mkdp_auto_start = 1
end,
},
-- { -- {
-- "Pocco81/auto-save.nvim", -- "Pocco81/auto-save.nvim",
-- config = function() -- config = function()

View file

@ -109,6 +109,9 @@
("<tab>" . 'my-tab) ("<tab>" . 'my-tab)
("TAB" . 'my-tab))) ("TAB" . 'my-tab)))
(use-package! ox-jira
:after org)
;; From https://github.com/hlissner/doom-emacs/issues/581 ;; From https://github.com/hlissner/doom-emacs/issues/581
(defun dlukes/ediff-doom-config (file) (defun dlukes/ediff-doom-config (file)
"ediff the current config with the examples in doom-emacs-dir "ediff the current config with the examples in doom-emacs-dir
@ -117,12 +120,12 @@ There are multiple config files, so FILE specifies which one to
diff. diff.
" "
(interactive (interactive
(list (read-file-name "Config file to diff: " doom-private-dir))) (list (read-file-name "Config file to diff: " doom-user-dir)))
(let* ((stem (file-name-base file)) (let* ((stem (file-name-base file))
(customized-file (format "%s.el" stem)) (customized-file (format "%s.el" stem))
(template-file-regex (format "^%s.example.el$" stem))) (template-file-regex (format "^%s.example.el$" stem)))
(ediff-files (ediff-files
(concat doom-private-dir customized-file) (concat doom-user-dir customized-file)
(car (directory-files-recursively (car (directory-files-recursively
doom-emacs-dir doom-emacs-dir
template-file-regex template-file-regex

View file

@ -53,3 +53,6 @@
(package! copilot (package! copilot
:recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist"))) :recipe (:host github :repo "zerolfx/copilot.el" :files ("*.el" "dist")))
(package! ox-jira
:recipe (:host github :repo "stig/ox-jira.el" :files ("*.el")))

2
.gemrc
View file

@ -1 +1 @@
gem: --no-ri --no-rdoc gem: --no-ri --no-rdoc --no-document

View file

@ -5,7 +5,7 @@
[color] [color]
ui = true ui = true
[alias] [alias]
lg = "log --decorate --pretty=format:'%C(yellow)%h%C(reset) %C(green)%G?%C(reset) %C(blue)%an%C(reset) %C(cyan)%cr%C(reset) %s %C(auto)%d%C(reset)' --graph --date-order" lg = "log --decorate --pretty=format:'%C(yellow)%h%C(reset) %C(green)%G?%C(reset) %C(blue)%an%C(reset) %C(cyan)%ch%C(reset) %s %C(auto)%d%C(reset)' --graph --date-order"
[diff] [diff]
tool = vimdiff tool = vimdiff
compactionHeuristic = true compactionHeuristic = true

View file

@ -3,5 +3,5 @@ max-cache-ttl 3600
enable-ssh-support enable-ssh-support
#disable-scdaemon #disable-scdaemon
#pinentry-program /usr/local/bin/pinentry-mac #pinentry-program /usr/local/bin/pinentry-mac
#pinentry-program /usr/bin/pinentry-curses #pinentry-program /usr/sbin/pinentry-curses
#extra-socket /Users/hunner/.gnupg/S.gpg-agent.extra #extra-socket /Users/hunner/.gnupg/S.gpg-agent.extra

View file

@ -103,6 +103,15 @@ setenv -g SSH_AUTH_SOCK "$HOME/.gnupg/$.gpg-agent.ssh"
### Colors ### Colors
set -a terminal-features '*:RGB'
set -ga terminal-overrides ",alacritty:RGB"
set -ga terminal-overrides ",*256col*:Tc"
# undercurl support
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
# Enable colored underlines (e.g. in Vim)
set -a terminal-features '*:usstyle'
# underscore colours - needs tmux-3.0
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
#set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M' #set -g status-right '#{prefix_highlight} | %a %Y-%m-%d %H:%M'
#set -ga terminal-overrides ",screen-256color-bce:Tc" #set -ga terminal-overrides ",screen-256color-bce:Tc"
#set -g default-terminal "screen-256color-bce" #set -g default-terminal "screen-256color-bce"

View file

@ -165,7 +165,7 @@ gsConfig = def
-- Layouts: -- Layouts:
--mLayout = smartBorders Full ||| tiled ||| hintedTile Wide ||| simplestFloat ||| Circle ||| magnifier Circle --mLayout = smartBorders Full ||| tiled ||| hintedTile Wide ||| simplestFloat ||| Circle ||| magnifier Circle
mLayout = Mirror tiled ||| tiled ||| smartBorders Full ||| Circle mLayout = Mirror tiled ||| tiled ||| smartBorders Full ||| Circle ||| simplestFloat
where where
-- default tiling algorithm partitions the screen into two panes -- default tiling algorithm partitions the screen into two panes
--tiled = Tall nmaster delta ratio --tiled = Tall nmaster delta ratio

View file

@ -6,11 +6,12 @@ alias la="l -Fa"
alias lla="ll -Fa" alias lla="ll -Fa"
alias c="cd" alias c="cd"
alias pg="ps auxww|grep" alias pg="ps auxww|grep"
alias pd="pwd"
cl() { cd $@ && ls } cl() { cd $@ && ls }
bellme() { echo "Done! (bellme)" ; while :; do echo -ne '\a' ; sleep 2 ; done } bellme() { echo "Done! (bellme)" ; while :; do echo -ne '\a' ; sleep 2 ; done }
#old linux aliases #old linux aliases
#alias s="TERM=xterm;ssh serenity.cat.pdx.edu" alias s="TERM=xterm;ssh serenity.cat.pdx.edu"
alias s="TERM=xterm ssh hunner@destiny.cat.pdx.edu" #alias s="TERM=xterm ssh hunner@destiny.cat.pdx.edu"
#alias f="TERM=xterm ssh hunner@firefly.cat.pdx.edu" #alias f="TERM=xterm ssh hunner@firefly.cat.pdx.edu"
alias f="find . | grep" alias f="find . | grep"
alias z="TERM=xterm ssh hunner@zabava.cat.pdx.edu" alias z="TERM=xterm ssh hunner@zabava.cat.pdx.edu"
@ -20,7 +21,6 @@ alias p="ping 8.8.8.8"
alias pi="ping google.com" alias pi="ping google.com"
alias ph="ping pi.hole" alias ph="ping pi.hole"
alias pa="ping ads.google.com" alias pa="ping ads.google.com"
alias pd="ping 192.168.194.93"
alias pipe=pip # typos alias pipe=pip # typos
alias chandra="TERM=xterm ssh hunner@chandra.cs.pdx.edu" alias chandra="TERM=xterm ssh hunner@chandra.cs.pdx.edu"
export CS=cs.pdx.edu export CS=cs.pdx.edu
@ -33,6 +33,7 @@ alias x="exit"
alias v="vagrant" alias v="vagrant"
alias w="cd ~/Documents/work/git" alias w="cd ~/Documents/work/git"
alias cem="cd ~/Documents/work/git/cem" alias cem="cd ~/Documents/work/git/cem"
alias forge="cd ~/Documents/work/git/forge"
alias ssh-gpg="ssh -R ~/.gnupg/S.gpg-agent.extra:~/.gnupg/S-gpg-agent.extra -o 'StreamLocalBindUnlink=yes'" alias ssh-gpg="ssh -R ~/.gnupg/S.gpg-agent.extra:~/.gnupg/S-gpg-agent.extra -o 'StreamLocalBindUnlink=yes'"
alias gpg-add="/usr/libexec/gpg-preset-passphrase" alias gpg-add="/usr/libexec/gpg-preset-passphrase"
alias rsync="rsync -azPHe ssh" #-a equals -rlptgoD alias rsync="rsync -azPHe ssh" #-a equals -rlptgoD
@ -65,7 +66,7 @@ alias hide="SetFile -a V"
alias show="SetFile -a v" alias show="SetFile -a v"
alias whyfail="tmux copy-mode && tmux send-keys -X search-backward '--- FAIL'" alias whyfail="tmux copy-mode && tmux send-keys -X search-backward '--- FAIL'"
alias m4b-tool='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt m4b-tool' alias m4b-tool='docker run -it --rm -u $(id -u):$(id -g) -v "$(pwd)":/mnt m4b-tool'
alias morserunner="docker-wine --sound=default --cache wine '.wine/drive_c/Program Files (x86)/Afreet/MorseRunner/MorseRunner.exe'" alias morserunner="docker-wine --as-me --force-owner --sound=default --cache --volume=/home/hunner/Downloads/morserunner:/data --workdir=/data wine MorseRunner.exe"
alias ry="vim -R +'set ft=yaml'" alias ry="vim -R +'set ft=yaml'"
alias superscript="tr '+=()0123456789AaÆᴂɐɑɒBbcɕDdðEeƎəɛɜɜfGgɡɣhHɦIiɪɨᵻɩjJʝɟKklLʟᶅɭMmɱNnɴɲɳŋOoɔᴖᴗɵȢPpɸrRɹɻʁsʂʃTtƫUuᴝʉɥɯɰʊvVʋʌwWxyzʐʑʒꝯᴥβγδθφχнნʕⵡ' \ alias superscript="tr '+=()0123456789AaÆᴂɐɑɒBbcɕDdðEeƎəɛɜɜfGgɡɣhHɦIiɪɨᵻɩjJʝɟKklLʟᶅɭMmɱNnɴɲɳŋOoɔᴖᴗɵȢPpɸrRɹɻʁsʂʃTtƫUuᴝʉɥɯɰʊvVʋʌwWxyzʐʑʒꝯᴥβγδθφχнნʕⵡ' \
'⁺⁻⁼⁽⁾⁰¹²³⁴⁵⁶⁷⁸⁹ᴬᵃᴭᵆᵄᵅᶛᴮᵇᶜᶝᴰᵈᶞᴱᵉᴲᵊᵋᶟᵌᶠᴳᵍᶢˠʰᴴʱᴵⁱᶦᶤᶧᶥʲᴶᶨᶡᴷᵏˡᴸᶫᶪᶩᴹᵐᶬᴺⁿᶰᶮᶯᵑᴼᵒᵓᵔᵕᶱᴽᴾᵖᶲʳᴿʴʵʶˢᶳᶴᵀᵗᶵᵁᵘᶸᵙᶶᶣᵚᶭᶷᵛⱽᶹᶺʷᵂˣʸᶻᶼᶽᶾꝰᵜᵝᵞᵟᶿᵠᵡᵸჼˤⵯ';" '⁺⁻⁼⁽⁾⁰¹²³⁴⁵⁶⁷⁸⁹ᴬᵃᴭᵆᵄᵅᶛᴮᵇᶜᶝᴰᵈᶞᴱᵉᴲᵊᵋᶟᵌᶠᴳᵍᶢˠʰᴴʱᴵⁱᶦᶤᶧᶥʲᴶᶨᶡᴷᵏˡᴸᶫᶪᶩᴹᵐᶬᴺⁿᶰᶮᶯᵑᴼᵒᵓᵔᵕᶱᴽᴾᵖᶲʳᴿʴʵʶˢᶳᶴᵀᵗᶵᵁᵘᶸᵙᶶᶣᵚᶭᶷᵛⱽᶹᶺʷᵂˣʸᶻᶼᶽᶾꝰᵜᵝᵞᵟᶿᵠᵡᵸჼˤⵯ';"
@ -224,7 +225,7 @@ alias vd=${VIM}diff
alias vir=vr alias vir=vr
alias vis=vs alias vis=vs
alias gvim="gvim -font 'APL385 Unicode 8' -c 'set keymap=uniapl385'" alias gvim="gvim -font 'APL385 Unicode 8' -c 'set keymap=uniapl385'"
alias n=nvim alias n=lvim
export NVIM_TUI_ENABLE_TRUE_COLOR=1 export NVIM_TUI_ENABLE_TRUE_COLOR=1
@ -260,7 +261,7 @@ alias gstp="git stash pop"
alias gdw="git diff --color-words" alias gdw="git diff --color-words"
alias gk="gitk --all&" alias gk="gitk --all&"
alias gx="gitx --all" alias gx="gitx --all"
alias grt="git restore --staged " alias grs="git restore --staged "
# Docker # Docker
@ -290,6 +291,16 @@ function dr() {
} }
alias d-c="docker-compose" alias d-c="docker-compose"
# Terraform
alias tfh="echo 'tf -- terraform
tfw -- terraform workspace
tfp -- terraform plan
tfs -- terraform state'"
alias tf="terraform"
alias tfw="terraform workspace"
alias tfp="terraform plan"
alias tfs="terraform state"
# K8s # K8s
alias kubectl="kubectl --context \${KUBE_CONTEXT:-\$(command kubectl config current-context)}" alias kubectl="kubectl --context \${KUBE_CONTEXT:-\$(command kubectl config current-context)}"

View file

@ -14,7 +14,7 @@ GH=10 # height of the gauge
GBG='#333' # color of gauge background GBG='#333' # color of gauge background
#X=1807 # x position #X=1807 # x position
#X="$(expr "$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+)x[0-9]+.*$/\1/')" - $W - 2)" # x position #X="$(expr "$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+)x[0-9]+.*$/\1/')" - $W - 2)" # x position
PRIMARY="$(xrandr -q | grep primary)" # x position PRIMARY="$(xrandr -q | grep primary | grep -v disconnected)" # x position
if [ -z "${PRIMARY}" ]; then if [ -z "${PRIMARY}" ]; then
X="$(expr "$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+)x[0-9]+.*$/\1/')" - $W - 2)" # x position X="$(expr "$(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+)x[0-9]+.*$/\1/')" - $W - 2)" # x position
else else