screenshot fixes, zsh, some others

This commit is contained in:
Tyrel Souza 2024-09-30 10:21:25 -04:00
parent 427302795a
commit 9757cfbb97
Signed by: tyrel
GPG Key ID: A7042C28F86F5183
6 changed files with 46 additions and 10 deletions

View File

@ -15,7 +15,7 @@ upload() {
url() { url() {
# Given a target name, echo the expected URL of the uploaded screenshot # Given a target name, echo the expected URL of the uploaded screenshot
echo "https://tyrel.pw/s/$1" echo "https://tyrel.bike/s/$1"
} }
### (End) ### (End)
@ -88,7 +88,8 @@ clipboard " "
# Upload it # Upload it
url=$(url "${filename}") url=$(url "${filename}")
echo "Uploading: $url" echo "Uploading: $url"
upload "${tmppath}" "${filename}" && rm "${tmppath}" || fail 3 "failed to upload ${tmppath}"
upload "${tmppath}" "${filename}" || fail 3 "failed to upload ${tmppath}"
# Copy to clipboard # Copy to clipboard
clipboard "${url}" clipboard "${url}"

View File

@ -44,7 +44,7 @@ vim.cmd 'colorscheme bamboo'
vim.g.floaterm_keymap_toggle = '<F9>' vim.g.floaterm_keymap_toggle = '<F9>'
vim.g.floaterm_width = 0.9 vim.g.floaterm_width = 0.9
vim.g.floaterm_height = 0.9 vim.g.floaterm_height = 0.9
vim.g.floaterm_shell = "/bin/bash" vim.g.floaterm_shell = "/bin/zsh"
vim.g.rustfmt_autosave = 1 vim.g.rustfmt_autosave = 1
vim.g.rust_use_custom_ctags_defs = 1 vim.g.rust_use_custom_ctags_defs = 1

View File

@ -77,9 +77,47 @@ config.keys = {
args = { 'nvim', wezterm.home_dir .. '/.config/wezterm/wezterm.lua' }, args = { 'nvim', wezterm.home_dir .. '/.config/wezterm/wezterm.lua' },
}, },
}, },
{
key = '|',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitHorizontal { },
},
{
key = '_',
mods = 'CTRL|SHIFT|ALT',
action = wezterm.action.SplitVertical { },
},
} }
function tab_title(tab_info)
local title = tab_info.tab_title
-- if the tab title is explicitly set, take that
if title and #title > 0 then
return title
end
-- Otherwise, use the title from the active pane
-- in that tab
return tab_info.active_pane.title
end
wezterm.on(
'format-tab-title',
function(tab, tabs, panes, config, hover, max_width)
local title = tab_title(tab)
if tab.is_active then
return {
{ Background = { Color = 'purple' } },
{ Text = ' ' .. title .. ' ' },
}
end
return title
end
)
-- and finally, return the configuration to wezterm -- and finally, return the configuration to wezterm
return config return config

View File

@ -1669,7 +1669,8 @@
# - verbose: Enable instant prompt and print a warning when detecting console output during # - verbose: Enable instant prompt and print a warning when detecting console output during
# zsh initialization. Choose this if you've never tried instant prompt, haven't # zsh initialization. Choose this if you've never tried instant prompt, haven't
# seen the warning, or if you are unsure what this all means. # seen the warning, or if you are unsure what this all means.
typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose #typeset -g POWERLEVEL9K_INSTANT_PROMPT=verbose
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
# Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized. # Hot reload allows you to change POWERLEVEL9K options after Powerlevel10k has been initialized.
# For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload # For example, you can type POWERLEVEL9K_BACKGROUND=red and see your prompt turn red. Hot reload

View File

@ -13,3 +13,4 @@ alias tree=tree -I 'node_modules|venv'
alias vim=nvim alias vim=nvim
alias vimini="vim ~/.config/nvim/init.vim" alias vimini="vim ~/.config/nvim/init.vim"
alias wx="curl https://wttr.in/Raleigh" alias wx="curl https://wttr.in/Raleigh"
alias tf0="tail -n0 -f"

View File

@ -1,12 +1,7 @@
autoload -Uz promptinit autoload -Uz promptinit
promptinit promptinit
prompt adam2 prompt adam2
source ~/.shell_aliases source ~/.shell_aliases
source ~/.shell_funcs source ~/.shell_funcs
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
source ~/.shell_base source ~/.shell_base