mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-12 11:52:32 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 959e7c418e | |||
| 3fb9d2a32e | |||
| e1050fc7e1 | |||
| 9d7a1acd30 | |||
| 9b7942a9fb | |||
| 3e6b80b598 | |||
| f6fb14d651 | |||
| bafb8fc2f6 | |||
| 6b11727540 | |||
| 5f4268d2e0 | |||
| ed3f881b93 | |||
| 939ee65e7a | |||
| 14f0cd00e2 | |||
| ddbfed1dd9 | |||
| e19120c45a |
20
.gitmodules
vendored
20
.gitmodules
vendored
@@ -24,26 +24,11 @@
|
|||||||
url = https://github.com/tmux-plugins/tmux-continuum
|
url = https://github.com/tmux-plugins/tmux-continuum
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
|
|
||||||
[submodule "tmux/tmux-sensible"]
|
|
||||||
path = config/tmux/plugins/tmux-sensible
|
|
||||||
url = https://github.com/tmux-plugins/tmux-sensible.git
|
|
||||||
ignore = dirty
|
|
||||||
|
|
||||||
[submodule "tmux/tmux-sessionist"]
|
[submodule "tmux/tmux-sessionist"]
|
||||||
path = config/tmux/plugins/tmux-sessionist
|
path = config/tmux/plugins/tmux-sessionist
|
||||||
url = https://github.com/tmux-plugins/tmux-sessionist.git
|
url = https://github.com/tmux-plugins/tmux-sessionist.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
|
|
||||||
[submodule "tmux/tmux-yank"]
|
|
||||||
path = config/tmux/plugins/tmux-yank
|
|
||||||
url = https://github.com/tmux-plugins/tmux-yank.git
|
|
||||||
ignore = dirty
|
|
||||||
|
|
||||||
[submodule "tmux/tmux-window-name"]
|
|
||||||
path = config/tmux/plugins/tmux-window-name
|
|
||||||
url = https://github.com/ivuorinen/tmux-window-name.git
|
|
||||||
ignore = dirty
|
|
||||||
|
|
||||||
[submodule "dotbot-pip"]
|
[submodule "dotbot-pip"]
|
||||||
path = tools/dotbot-pip
|
path = tools/dotbot-pip
|
||||||
url = https://github.com/sobolevn/dotbot-pip.git
|
url = https://github.com/sobolevn/dotbot-pip.git
|
||||||
@@ -54,11 +39,6 @@
|
|||||||
url = https://github.com/MunifTanjim/tmux-suspend.git
|
url = https://github.com/MunifTanjim/tmux-suspend.git
|
||||||
ignore = dirty
|
ignore = dirty
|
||||||
|
|
||||||
[submodule "tmux/tmux-mode-indicator"]
|
|
||||||
path = config/tmux/plugins/tmux-mode-indicator
|
|
||||||
url = https://github.com/MunifTanjim/tmux-mode-indicator.git
|
|
||||||
ignore = dirty
|
|
||||||
|
|
||||||
[submodule "tmux/tmux-current-pane-hostname"]
|
[submodule "tmux/tmux-current-pane-hostname"]
|
||||||
path = config/tmux/plugins/tmux-current-pane-hostname
|
path = config/tmux/plugins/tmux-current-pane-hostname
|
||||||
url = https://github.com/soyuka/tmux-current-pane-hostname.git
|
url = https://github.com/soyuka/tmux-current-pane-hostname.git
|
||||||
|
|||||||
@@ -24,20 +24,12 @@ git submodule add --name antidote \
|
|||||||
# tmux plugin manager and plugins
|
# tmux plugin manager and plugins
|
||||||
git submodule add --name tmux/tmux-continuum \
|
git submodule add --name tmux/tmux-continuum \
|
||||||
-f https://github.com/tmux-plugins/tmux-continuum config/tmux/plugins/tmux-continuum
|
-f https://github.com/tmux-plugins/tmux-continuum config/tmux/plugins/tmux-continuum
|
||||||
git submodule add --name tmux/tmux-mode-indicator \
|
|
||||||
-f https://github.com/MunifTanjim/tmux-mode-indicator.git config/tmux/plugins/tmux-mode-indicator
|
|
||||||
git submodule add --name tmux/tmux-resurrect \
|
git submodule add --name tmux/tmux-resurrect \
|
||||||
-f https://github.com/tmux-plugins/tmux-resurrect.git config/tmux/plugins/tmux-resurrect
|
-f https://github.com/tmux-plugins/tmux-resurrect.git config/tmux/plugins/tmux-resurrect
|
||||||
git submodule add --name tmux/tmux-sensible \
|
|
||||||
-f https://github.com/tmux-plugins/tmux-sensible.git config/tmux/plugins/tmux-sensible
|
|
||||||
git submodule add --name tmux/tmux-sessionist \
|
git submodule add --name tmux/tmux-sessionist \
|
||||||
-f https://github.com/tmux-plugins/tmux-sessionist.git config/tmux/plugins/tmux-sessionist
|
-f https://github.com/tmux-plugins/tmux-sessionist.git config/tmux/plugins/tmux-sessionist
|
||||||
git submodule add --name tmux/tmux-suspend \
|
git submodule add --name tmux/tmux-suspend \
|
||||||
-f https://github.com/MunifTanjim/tmux-suspend.git config/tmux/plugins/tmux-suspend
|
-f https://github.com/MunifTanjim/tmux-suspend.git config/tmux/plugins/tmux-suspend
|
||||||
git submodule add --name tmux/tmux-window-name \
|
|
||||||
-f https://github.com/ivuorinen/tmux-window-name.git config/tmux/plugins/tmux-window-name
|
|
||||||
git submodule add --name tmux/tmux-yank \
|
|
||||||
-f https://github.com/tmux-plugins/tmux-yank.git config/tmux/plugins/tmux-yank
|
|
||||||
git submodule add --name tmux/tmux-current-pane-hostname \
|
git submodule add --name tmux/tmux-current-pane-hostname \
|
||||||
-f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname
|
-f https://github.com/soyuka/tmux-current-pane-hostname.git config/tmux/plugins/tmux-current-pane-hostname
|
||||||
git submodule add --name tmux/tmux-dark-notify \
|
git submodule add --name tmux/tmux-dark-notify \
|
||||||
@@ -61,6 +53,11 @@ folders=(
|
|||||||
"config/tmux/plugins/tmux-menus"
|
"config/tmux/plugins/tmux-menus"
|
||||||
"tools/dotbot-crontab"
|
"tools/dotbot-crontab"
|
||||||
"tools/dotbot-snap"
|
"tools/dotbot-snap"
|
||||||
|
"config/tmux/plugins/tmux-window-name"
|
||||||
|
"config/tmux/plugins/tmux-sensible"
|
||||||
|
"config/tmux/plugins/tmux-mode-indicator"
|
||||||
|
"config/tmux/plugins/tmux-yank"
|
||||||
|
"config/tmux/plugins/tmux-fzf-url"
|
||||||
"config/nvim-kickstart"
|
"config/nvim-kickstart"
|
||||||
"local/bin/asdf"
|
"local/bin/asdf"
|
||||||
"local/asdf"
|
"local/asdf"
|
||||||
|
|||||||
@@ -7,10 +7,6 @@ export SHARED_SCRIPTS_SOURCED=0
|
|||||||
|
|
||||||
source "$DOTFILES/config/shared.sh"
|
source "$DOTFILES/config/shared.sh"
|
||||||
|
|
||||||
if [ -n "${GHOSTTY_RESOURCES_DIR}" ]; then
|
|
||||||
builtin source "${GHOSTTY_RESOURCES_DIR}/shell-integration/bash/ghostty.bash"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# shellcheck source=../config/fzf/fzf.bash
|
# shellcheck source=../config/fzf/fzf.bash
|
||||||
[ -f "${DOTFILES}/config/fzf/fzf.bash" ] &&
|
[ -f "${DOTFILES}/config/fzf/fzf.bash" ] &&
|
||||||
source "${DOTFILES}/config/fzf/fzf.bash"
|
source "${DOTFILES}/config/fzf/fzf.bash"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
use node
|
|
||||||
17
base/zshrc
17
base/zshrc
@@ -33,24 +33,7 @@ source_fzf_config()
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to set up tmux window name plugin if tmux is active
|
|
||||||
setup_tmux_window_name_plugin()
|
|
||||||
{
|
|
||||||
if [[ -n "$TMUX" ]]; then
|
|
||||||
local tmux_window_name_plugin="$TMUX_PLUGINS/tmux-window-name/scripts/rename_session_windows.py"
|
|
||||||
if [[ -f "$tmux_window_name_plugin" ]]; then
|
|
||||||
tmux_window_name()
|
|
||||||
{
|
|
||||||
($tmux_window_name_plugin &)
|
|
||||||
}
|
|
||||||
add-zsh-hook chpwd tmux_window_name
|
|
||||||
tmux_window_name
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
source_fzf_config
|
source_fzf_config
|
||||||
setup_tmux_window_name_plugin
|
|
||||||
x-have antidot && eval "$(antidot init)"
|
x-have antidot && eval "$(antidot init)"
|
||||||
|
|
||||||
autoload -Uz compinit bashcompinit
|
autoload -Uz compinit bashcompinit
|
||||||
|
|||||||
@@ -1,251 +0,0 @@
|
|||||||
# Start AeroSpace at login
|
|
||||||
start-at-login = false
|
|
||||||
|
|
||||||
# Normalizations. See: https://nikitabobko.github.io/AeroSpace/guide#normalization
|
|
||||||
enable-normalization-flatten-containers = true
|
|
||||||
enable-normalization-opposite-orientation-for-nested-containers = true
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#layouts
|
|
||||||
# The 'accordion-padding' specifies the size of accordion padding
|
|
||||||
# You can set 0 to disable the padding feature
|
|
||||||
accordion-padding = 10
|
|
||||||
|
|
||||||
# Possible values: tiles|accordion
|
|
||||||
default-root-container-layout = 'tiles'
|
|
||||||
|
|
||||||
# Possible values: horizontal|vertical|auto
|
|
||||||
# 'auto' means: wide monitor (anything wider than high) gets horizontal orientation,
|
|
||||||
# tall monitor (anything higher than wide) gets vertical orientation
|
|
||||||
default-root-container-orientation = 'auto'
|
|
||||||
|
|
||||||
# Mouse follows focus when focused monitor changes
|
|
||||||
# Drop it from your config, if you don't like this behavior
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/guide#on-focus-changed-callbacks
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/commands#move-mouse
|
|
||||||
# Fallback value (if you omit the key): on-focused-monitor-changed = []
|
|
||||||
on-focused-monitor-changed = ['move-mouse monitor-lazy-center']
|
|
||||||
|
|
||||||
# You can effectively turn off macOS "Hide application" (cmd-h) feature by toggling this flag
|
|
||||||
# Useful if you don't use this macOS feature, but accidentally hit cmd-h or cmd-alt-h key
|
|
||||||
# Also see: https://nikitabobko.github.io/AeroSpace/goodness#disable-hide-app
|
|
||||||
automatically-unhide-macos-hidden-apps = true
|
|
||||||
|
|
||||||
# [[on-window-detected]]
|
|
||||||
# if.app-id = 'com.apple.systempreferences'
|
|
||||||
# if.app-name-regex-substring = 'settings'
|
|
||||||
# if.window-title-regex-substring = 'substring'
|
|
||||||
# if.workspace = 'workspace-name'
|
|
||||||
# if.during-aerospace-startup = true
|
|
||||||
# check-further-callbacks = true
|
|
||||||
# run = ['layout floating', 'move-node-to-workspace S'] # The callback itself
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-name-regex-substring = 'settings' # All settings
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.systempreferences' # macOS System Preferences
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.1password.1password' # 1Password
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'org.ferdium.ferdium-app' # Ferdium, has WhatsApp etc.
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.jetbrains.PhpStorm' # PhpStorm
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.finder' # Finder
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.Preview' # Preview
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.mail' # Mail
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.DanPristupov.Fork' # Fork
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.flexibits.fantastical2.mac' # Fantastical
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'org.whispersystems.signal-desktop' # Signal
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.tidal.desktop' # TIDAL
|
|
||||||
run = ['layout floating', 'move-node-to-workspace 2'] # Float and move to workspace 2
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.TV' # Apple TV app
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.setapp.DesktopClient' # Setapp
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.electron.dockerdesktop' # Docker Desktop
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.tinyspeck.slackmacgap' # Slack
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'md.obsidia' # Obsidian
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.todoist.mac.Todoist' # Todoist
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.apple.backup.launcher' # TimeMachine
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.philipyoungg.session-setapp' # Session app (Setapp)
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
[[on-window-detected]]
|
|
||||||
if.app-id = 'com.microsoft.rdc.macos' # Remote Desktop
|
|
||||||
run = ['layout floating']
|
|
||||||
|
|
||||||
# Possible values: (qwerty|dvorak)
|
|
||||||
# See https://nikitabobko.github.io/AeroSpace/guide#key-mapping
|
|
||||||
[key-mapping]
|
|
||||||
preset = 'qwerty'
|
|
||||||
|
|
||||||
# Gaps between windows (inner-*) and between monitor edges (outer-*).
|
|
||||||
# Possible values:
|
|
||||||
# - Constant: gaps.outer.top = 8
|
|
||||||
# - Per monitor: gaps.outer.top = [{ monitor.main = 16 }, { monitor."some-pattern" = 32 }, 24]
|
|
||||||
# In this example, 24 is a default value when there is no match.
|
|
||||||
# Monitor pattern is the same as for 'workspace-to-monitor-force-assignment'.
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#assign-workspaces-to-monitors
|
|
||||||
[gaps]
|
|
||||||
inner.horizontal = 5
|
|
||||||
inner.vertical = 5
|
|
||||||
outer.top = [{ monitor.'^built-in retina display$' = 0 }, 0]
|
|
||||||
outer.right = 0
|
|
||||||
outer.bottom = 0
|
|
||||||
outer.left = 0
|
|
||||||
|
|
||||||
# 'main' binding mode declaration
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
|
||||||
# 'main' binding mode must be always presented
|
|
||||||
# Fallback value (if you omit the key): mode.main.binding = {}
|
|
||||||
[mode.main.binding]
|
|
||||||
|
|
||||||
cmd-h = [] # Disable "hide application"
|
|
||||||
cmd-alt-h = [] # Disable "hide others"
|
|
||||||
|
|
||||||
# All possible keys:
|
|
||||||
# - Letters. a, b, c, ..., z
|
|
||||||
# - Numbers. 0, 1, 2, ..., 9
|
|
||||||
# - Keypad numbers. keypad0, keypad1, keypad2, ..., keypad9
|
|
||||||
# - F-keys. f1, f2, ..., f20
|
|
||||||
# - Special keys. minus, equal, period, comma, slash, backslash, quote, semicolon, backtick,
|
|
||||||
# leftSquareBracket, rightSquareBracket, space, enter, esc, backspace, tab
|
|
||||||
# - Keypad special. keypadClear, keypadDecimalMark, keypadDivide, keypadEnter, keypadEqual,
|
|
||||||
# keypadMinus, keypadMultiply, keypadPlus
|
|
||||||
# - Arrows. left, down, up, right
|
|
||||||
|
|
||||||
# All possible modifiers: cmd, alt, ctrl, shift
|
|
||||||
|
|
||||||
# All possible commands: https://nikitabobko.github.io/AeroSpace/commands
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#exec-and-forget
|
|
||||||
# You can uncomment the following lines to open up terminal with alt + enter shortcut (like in i3)
|
|
||||||
# alt-enter = '''exec-and-forget osascript -e '
|
|
||||||
# tell application "Terminal"
|
|
||||||
# do script
|
|
||||||
# activate
|
|
||||||
# end tell'
|
|
||||||
# '''
|
|
||||||
|
|
||||||
# alt-cmd-shift-f = 'fullscreen'
|
|
||||||
# alt-shift-f = 'layout floating'
|
|
||||||
# alt-shift-tab = 'move-workspace-to-monitor --wrap-around next'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#focus
|
|
||||||
alt-h = 'focus left'
|
|
||||||
alt-j = 'focus down'
|
|
||||||
alt-k = 'focus up'
|
|
||||||
alt-l = 'focus right'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#workspace
|
|
||||||
alt-shift-1 = 'workspace 1' # Main
|
|
||||||
alt-shift-2 = 'workspace 2' # Media
|
|
||||||
ctrl-shift-1 = 'move-node-to-workspace 1' # Move node to Main
|
|
||||||
ctrl-shift-2 = 'move-node-to-workspace 2' # Move node to Media
|
|
||||||
|
|
||||||
alt-shift-tab = 'workspace-back-and-forth' # Switch between workspaces
|
|
||||||
ctrl-shift-tab = 'move-workspace-to-monitor --wrap-around prev'
|
|
||||||
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#mode
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/guide#binding-modes
|
|
||||||
alt-a = 'mode apps'
|
|
||||||
alt-s = 'mode service'
|
|
||||||
alt-m = 'mode move'
|
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
|
||||||
# │ alt-m │
|
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
|
||||||
[mode.move.binding]
|
|
||||||
esc = ['reload-config', 'mode main']
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move-node-to-workspace
|
|
||||||
1 = ['move-node-to-workspace 1 --focus-follows-window']
|
|
||||||
2 = ['move-node-to-workspace 2 --focus-follows-window']
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#move
|
|
||||||
h = 'move left'
|
|
||||||
j = 'move down'
|
|
||||||
k = 'move up'
|
|
||||||
l = 'move right'
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#join-with
|
|
||||||
shift-h = 'join-with left'
|
|
||||||
shift-j = 'join-with down'
|
|
||||||
shift-k = 'join-with up'
|
|
||||||
shift-l = 'join-with right'
|
|
||||||
# https://nikitabobko.github.io/AeroSpace/commands#resize
|
|
||||||
ctrl-h = 'resize smart -70'
|
|
||||||
ctrl-l = 'resize smart +70'
|
|
||||||
shift-left = 'resize smart +70'
|
|
||||||
shift-right = 'resize smart -70'
|
|
||||||
# https://nikitabobko.github.io/AeroSpace/commands#flatten-workspace-tree
|
|
||||||
r = ['flatten-workspace-tree', 'mode main'] # reset layout
|
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
|
||||||
# │ alt-a │
|
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
|
||||||
[mode.apps.binding]
|
|
||||||
esc = ['reload-config', 'mode main']
|
|
||||||
b = ['exec-and-forget open -a /Applications/Brave Browser.app', 'mode main'] # Browser
|
|
||||||
c = ['exec-and-forget open -a /Applications/Ferdium.app', 'mode main'] # Chat
|
|
||||||
g = ['exec-and-forget open -a /Applications/Ghostty.app', 'mode main'] # Ghostty
|
|
||||||
o = ['exec-and-forget open -a /Applications/Obsidian.app', 'mode main'] # Obsidian
|
|
||||||
s = ['exec-and-forget open -a /Applications/Slack.app', 'mode main'] # Slack
|
|
||||||
t = ['exec-and-forget open -a /Applications/TIDAL.app', 'mode main'] # Tidal
|
|
||||||
w = ['exec-and-forget open -a /Applications/WezTerm.app', 'mode main'] # WezTerm
|
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
|
||||||
# │ alt-s │
|
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
|
||||||
[mode.service.binding]
|
|
||||||
esc = ['reload-config', 'mode main'] # reload config
|
|
||||||
r = ['flatten-workspace-tree', 'mode main'] # reset layout
|
|
||||||
# See: https://nikitabobko.github.io/AeroSpace/commands#layout
|
|
||||||
f = ['layout floating tiling', 'mode main'] # Toggle between floating and tiling layout
|
|
||||||
backspace = ['close-all-windows-but-current', 'mode main']
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
# yaml-language-server: $schema=https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/aqua-yaml.json
|
|
||||||
# aqua - Declarative CLI Version Manager
|
|
||||||
# https://aquaproj.github.io/
|
|
||||||
# checksum:
|
|
||||||
# enabled: true
|
|
||||||
# require_checksum: true
|
|
||||||
# supported_envs:
|
|
||||||
# - all
|
|
||||||
registries:
|
|
||||||
- type: standard
|
|
||||||
ref: v4.346.0 # renovate: depName=aquaproj/aqua-registry
|
|
||||||
packages:
|
|
||||||
- name: cli/cli
|
|
||||||
version: 'v2.69.0'
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# See the docs for explanations: https://asdf-vm.com/manage/configuration.html
|
|
||||||
|
|
||||||
legacy_version_file=yes
|
|
||||||
use_release_candidates=no
|
|
||||||
concurrency=auto
|
|
||||||
@@ -1,27 +0,0 @@
|
|||||||
// A cargo subcommand for checking and applying
|
|
||||||
// updates to installed executables
|
|
||||||
cargo-update
|
|
||||||
// Cargo cache management utility
|
|
||||||
cargo-cache
|
|
||||||
// An incremental parsing system for programming tools
|
|
||||||
tree-sitter-cli
|
|
||||||
// a subprocess caching utility
|
|
||||||
bkt
|
|
||||||
// a structural diff that understands syntax
|
|
||||||
difftastic
|
|
||||||
// A simple, fast and user-friendly alternative to 'find'
|
|
||||||
fd-find
|
|
||||||
// recursively searches directories for a
|
|
||||||
// regex pattern while respecting your gitignore
|
|
||||||
ripgrep
|
|
||||||
// A version manager for neovim
|
|
||||||
bob-nvim
|
|
||||||
// bottom, btm - A cross-platform graphical process/system monitor with
|
|
||||||
// a customizable interface and a multitude of features.
|
|
||||||
bottom
|
|
||||||
// A modern alternative to ls
|
|
||||||
eza
|
|
||||||
// Tmux Sessionizer: A tool for opening git repositories as tmux sessions
|
|
||||||
tmux-sessionizer
|
|
||||||
// zoxide, a smarter cd command
|
|
||||||
zoxide
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
bundler
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
// These are golang packages I use,
|
|
||||||
// so they should be available with all versions
|
|
||||||
|
|
||||||
// Git Profile allows you to switch between user profiles in git repos
|
|
||||||
github.com/dotzero/git-profile@latest
|
|
||||||
// An extensible command line tool or library to format yaml files.
|
|
||||||
github.com/google/yamlfmt/cmd/yamlfmt@latest
|
|
||||||
// Parsing HTML at the command line
|
|
||||||
github.com/ericchiang/pup@latest
|
|
||||||
// HTML to Markdown converter
|
|
||||||
github.com/suntong/html2md@latest
|
|
||||||
// cheat allows you to create and view interactive cheatsheets on the cli.
|
|
||||||
github.com/cheat/cheat/cmd/cheat@latest
|
|
||||||
// Render markdown on the CLI, with pizzazz! 💅
|
|
||||||
github.com/charmbracelet/glow@latest
|
|
||||||
// Static checker for GitHub Actions workflow files
|
|
||||||
github.com/rhysd/actionlint/cmd/actionlint@latest
|
|
||||||
// Cleans up your $HOME from those pesky dotfiles
|
|
||||||
github.com/doron-cohen/antidot@latest
|
|
||||||
// FZF is a general-purpose command-line fuzzy finder.
|
|
||||||
github.com/junegunn/fzf@latest
|
|
||||||
// gopls, the Go language server
|
|
||||||
golang.org/x/tools/gopls@latest
|
|
||||||
// A language for writing HTML user interfaces in Go.
|
|
||||||
github.com/a-h/templ/cmd/templ@latest
|
|
||||||
// A tool for glamorous shell scripts 🎀
|
|
||||||
github.com/charmbracelet/gum@latest
|
|
||||||
// A terminal session manager
|
|
||||||
github.com/joshmedeski/sesh/v2@latest
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
blade-formatter
|
|
||||||
corepack
|
|
||||||
editorconfig-checker
|
|
||||||
github-release-notes
|
|
||||||
neovim
|
|
||||||
npm
|
|
||||||
stylelint-lsp
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
1password-cli https://github.com/NeoHsu/asdf-1password-cli.git f5d5aab
|
|
||||||
age https://github.com/threkk/asdf-age.git 396bdf6
|
|
||||||
asdf-plugin-manager https://github.com/asdf-community/asdf-plugin-manager.git b5862c1
|
|
||||||
direnv https://github.com/asdf-community/asdf-direnv.git 6ff3dbe
|
|
||||||
dotenv-linter https://github.com/wesleimp/asdf-dotenv-linter.git 1369f53
|
|
||||||
editorconfig-checker https://github.com/gabitchov/asdf-editorconfig-checker.git 585c1d5
|
|
||||||
fd https://gitlab.com/wt0f/asdf-fd.git 17d56e0
|
|
||||||
github-cli https://github.com/bartlomiejdanek/asdf-github-cli.git e0605b7
|
|
||||||
golang https://github.com/asdf-community/asdf-golang.git e2527a3
|
|
||||||
hadolint https://github.com/devlincashman/asdf-hadolint.git c8eb88b
|
|
||||||
kubectl https://github.com/asdf-community/asdf-kubectl.git 2fb3b57
|
|
||||||
pre-commit https://github.com/jonathanmorley/asdf-pre-commit.git 26bfc42
|
|
||||||
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git e836665
|
|
||||||
rust https://github.com/code-lever/asdf-rust.git 95acf4f
|
|
||||||
shellcheck https://github.com/luizm/asdf-shellcheck.git 66200ff
|
|
||||||
shfmt https://github.com/luizm/asdf-shfmt.git a42c5ff
|
|
||||||
terragrunt https://github.com/ohmer/asdf-terragrunt.git 29f2935
|
|
||||||
tf-summarize https://github.com/adamcrews/asdf-tf-summarize.git 880ad26
|
|
||||||
yamllint https://github.com/ericcornelissen/asdf-yamllint.git e4cfb17
|
|
||||||
yq https://github.com/sudermanjr/asdf-yq.git 772992f
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
ansible
|
|
||||||
pipenv
|
|
||||||
neovim
|
|
||||||
libtmux
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
[global]
|
|
||||||
disable_stdin = false
|
|
||||||
load_dotenv = true
|
|
||||||
hide_env_diff = false
|
|
||||||
|
|
||||||
[whitelist]
|
|
||||||
prefix = [
|
|
||||||
"~/Code/"
|
|
||||||
]
|
|
||||||
exact = [
|
|
||||||
"~/.dotfiles/.envrc"
|
|
||||||
]
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
### Do not edit. This was autogenerated by 'asdf direnv setup' ###
|
|
||||||
# shellcheck shell=bash
|
|
||||||
use_asdf()
|
|
||||||
{
|
|
||||||
source_env "$(asdf direnv envrc "$@")"
|
|
||||||
}
|
|
||||||
@@ -348,12 +348,6 @@ export COMPOSER_HOME="$XDG_STATE_HOME/composer"
|
|||||||
export COMPOSER_BIN="$COMPOSER_HOME/vendor/bin"
|
export COMPOSER_BIN="$COMPOSER_HOME/vendor/bin"
|
||||||
export PATH="$COMPOSER_BIN:$PATH"
|
export PATH="$COMPOSER_BIN:$PATH"
|
||||||
|
|
||||||
# direnv, https://direnv.net/
|
|
||||||
# https://direnv.net/docs/hook.html
|
|
||||||
# Set the hook to show the direnv message in a different color
|
|
||||||
# export DIRENV_LOG_FORMAT=$'\033[2mdirenv: %s\033[0m'
|
|
||||||
export DIRENV_LOG_FORMAT=
|
|
||||||
|
|
||||||
# docker, https://docs.docker.com/engine/reference/commandline/cli/
|
# docker, https://docs.docker.com/engine/reference/commandline/cli/
|
||||||
msg "Setting up Docker configuration"
|
msg "Setting up Docker configuration"
|
||||||
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
export DOCKER_CONFIG="${XDG_CONFIG_HOME}/docker"
|
||||||
@@ -410,11 +404,6 @@ x-have pyenv && eval "$(pyenv init -)"
|
|||||||
msg "Setting up Rust/Cargo configuration"
|
msg "Setting up Rust/Cargo configuration"
|
||||||
export RUST_WITHOUT=rust-docs
|
export RUST_WITHOUT=rust-docs
|
||||||
|
|
||||||
# screen
|
|
||||||
# https://www.gnu.org/software/screen/manual/screen.html
|
|
||||||
msg "Setting up screen configuration"
|
|
||||||
export SCREENRC="$XDG_CONFIG_HOME/misc/screenrc"
|
|
||||||
|
|
||||||
# sonarlint
|
# sonarlint
|
||||||
# https://www.sonarlint.org/
|
# https://www.sonarlint.org/
|
||||||
msg "Setting up Sonarlint configuration"
|
msg "Setting up Sonarlint configuration"
|
||||||
@@ -442,9 +431,6 @@ export ZSH_TMUX_UNICODE=true
|
|||||||
export ZSH_TMUX_AUTOQUIT=false
|
export ZSH_TMUX_AUTOQUIT=false
|
||||||
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
export ZSH_TMUX_DEFAULT_SESSION_NAME=main
|
||||||
|
|
||||||
# tms, https://github.com/jrmoulton/tmux-sessionizer
|
|
||||||
export TMS_CONFIG_FILE="${XDG_CONFIG_HOME}/tms/config.toml"
|
|
||||||
|
|
||||||
# wakatime, https://github.com/wakatime/wakatime-cli
|
# wakatime, https://github.com/wakatime/wakatime-cli
|
||||||
msg "Setting up Wakatime configuration"
|
msg "Setting up Wakatime configuration"
|
||||||
export WAKATIME_HOME="$XDG_STATE_HOME/wakatime"
|
export WAKATIME_HOME="$XDG_STATE_HOME/wakatime"
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ fi
|
|||||||
export PATH="$HOME/.local/go/bin:$PATH"
|
export PATH="$HOME/.local/go/bin:$PATH"
|
||||||
|
|
||||||
alias logrotate='/usr/sbin/logrotate -s "$HOME/logs/state"'
|
alias logrotate='/usr/sbin/logrotate -s "$HOME/logs/state"'
|
||||||
alias nano='nano -wS -$'
|
|
||||||
alias gpg=gpg2
|
alias gpg=gpg2
|
||||||
|
|
||||||
ACME_PATH="$HOME/.acme.sh"
|
ACME_PATH="$HOME/.acme.sh"
|
||||||
|
|||||||
@@ -3,6 +3,13 @@
|
|||||||
|
|
||||||
# Set default configuration using session variables for most settings
|
# Set default configuration using session variables for most settings
|
||||||
# Only PHPENV_GLOBAL_VERSION needs to persist across shells
|
# Only PHPENV_GLOBAL_VERSION needs to persist across shells
|
||||||
|
|
||||||
|
# Provider override (empty = auto-detect)
|
||||||
|
# Valid values: homebrew, apt
|
||||||
|
if not set -q PHPENV_PROVIDER
|
||||||
|
set -g PHPENV_PROVIDER ""
|
||||||
|
end
|
||||||
|
|
||||||
if not set -q PHPENV_AUTO_INSTALL
|
if not set -q PHPENV_AUTO_INSTALL
|
||||||
set -g PHPENV_AUTO_INSTALL false
|
set -g PHPENV_AUTO_INSTALL false
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
# │ fish/config.fish │
|
# │ fish/config.fish │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
|
fish_config theme choose "Catppuccin Mocha"
|
||||||
|
|
||||||
test -e "$HOME/.config/fish/alias.fish" &&
|
test -e "$HOME/.config/fish/alias.fish" &&
|
||||||
source "$HOME/.config/fish/alias.fish"
|
source "$HOME/.config/fish/alias.fish"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
jorgebucaran/fisher
|
jorgebucaran/fisher
|
||||||
ilancosman/tide@v6
|
|
||||||
jethrokuan/z
|
jethrokuan/z
|
||||||
ivuorinen/phpenv.fish
|
ivuorinen/phpenv.fish
|
||||||
|
ilancosman/tide@v6
|
||||||
|
catppuccin/fish
|
||||||
|
|||||||
@@ -1,17 +1,18 @@
|
|||||||
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
set --query fisher_path || set --local fisher_path $__fish_config_dir
|
||||||
set --local fisher_version 4.4.5
|
set --local fisher_version 4.4.8
|
||||||
set --local fish_plugins $__fish_config_dir/fish_plugins
|
set --local fish_plugins $__fish_config_dir/fish_plugins
|
||||||
|
|
||||||
switch "$cmd"
|
switch "$cmd"
|
||||||
case -v --version
|
case -v --version
|
||||||
echo "fisher, version $fisher_version"
|
echo "fisher, version $fisher_version"
|
||||||
case "" -h --help
|
case "" -h --help
|
||||||
echo "Usage: fisher install <plugins...> Install plugins"
|
echo "Usage: fisher install <plugins...> Install plugins"
|
||||||
echo " fisher remove <plugins...> Remove installed plugins"
|
echo " fisher remove <plugins...> Remove installed plugins"
|
||||||
echo " fisher update <plugins...> Update installed plugins"
|
echo " fisher uninstall <plugins...> Remove installed plugins (alias)"
|
||||||
echo " fisher update Update all installed plugins"
|
echo " fisher update <plugins...> Update installed plugins"
|
||||||
echo " fisher list [<regex>] List installed plugins matching regex"
|
echo " fisher update Update all installed plugins"
|
||||||
|
echo " fisher list [<regex>] List installed plugins matching regex"
|
||||||
echo "Options:"
|
echo "Options:"
|
||||||
echo " -v, --version Print version"
|
echo " -v, --version Print version"
|
||||||
echo " -h, --help Print this help message"
|
echo " -h, --help Print this help message"
|
||||||
@@ -19,9 +20,11 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||||||
echo " \$fisher_path Plugin installation path. Default: $__fish_config_dir" | string replace --regex -- $HOME \~
|
echo " \$fisher_path Plugin installation path. Default: $__fish_config_dir" | string replace --regex -- $HOME \~
|
||||||
case ls list
|
case ls list
|
||||||
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
string match --entire --regex -- "$argv[2]" $_fisher_plugins
|
||||||
case install update remove
|
case install update remove uninstall
|
||||||
isatty || read --local --null --array stdin && set --append argv $stdin
|
isatty || read --local --null --array stdin && set --append argv $stdin
|
||||||
|
|
||||||
|
test "$cmd" = uninstall && set cmd remove
|
||||||
|
|
||||||
set --local install_plugins
|
set --local install_plugins
|
||||||
set --local update_plugins
|
set --local update_plugins
|
||||||
set --local remove_plugins
|
set --local remove_plugins
|
||||||
@@ -38,6 +41,8 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||||||
echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
|
echo "fisher: \"$fish_plugins\" file not found: \"$cmd\"" >&2 && return 1
|
||||||
end
|
end
|
||||||
set arg_plugins $file_plugins
|
set arg_plugins $file_plugins
|
||||||
|
else if test "$cmd" = install && ! set --query old_plugins[1]
|
||||||
|
set --append arg_plugins $file_plugins
|
||||||
end
|
end
|
||||||
|
|
||||||
for plugin in $arg_plugins
|
for plugin in $arg_plugins
|
||||||
@@ -86,6 +91,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||||||
if test -e $plugin
|
if test -e $plugin
|
||||||
command cp -Rf $plugin/* $source
|
command cp -Rf $plugin/* $source
|
||||||
else
|
else
|
||||||
|
set resp (command mktemp)
|
||||||
set temp (command mktemp -d)
|
set temp (command mktemp -d)
|
||||||
set repo (string split -- \@ $plugin) || set repo[2] HEAD
|
set repo (string split -- \@ $plugin) || set repo[2] HEAD
|
||||||
|
|
||||||
@@ -98,8 +104,13 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
|||||||
|
|
||||||
echo Fetching (set_color --underline)\$url(set_color normal)
|
echo Fetching (set_color --underline)\$url(set_color normal)
|
||||||
|
|
||||||
if command curl -q --silent -L \$url | command tar -xzC \$temp -f - 2>/dev/null
|
set http (command curl -q --silent -L -o \$resp -w %{http_code} \$url)
|
||||||
|
|
||||||
|
if test \"\$http\" = 200 && command tar -xzC \$temp -f \$resp 2>/dev/null
|
||||||
command cp -Rf \$temp/*/* $source
|
command cp -Rf \$temp/*/* $source
|
||||||
|
else if test \"\$http\" = 403
|
||||||
|
echo fisher: GitHub API rate limit exceeded \(HTTP 403\) >&2
|
||||||
|
command rm -rf $source
|
||||||
else
|
else
|
||||||
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
||||||
command rm -rf $source
|
command rm -rf $source
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
61
config/fish/themes/Catppuccin Frappe.theme
Normal file
61
config/fish/themes/Catppuccin Frappe.theme
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# name: 'Catppuccin Frappé'
|
||||||
|
# url: 'https://github.com/catppuccin/fish'
|
||||||
|
|
||||||
|
[light]
|
||||||
|
# preferred_background: eff1f5
|
||||||
|
fish_color_normal 4c4f69
|
||||||
|
fish_color_command 1e66f5
|
||||||
|
fish_color_param dd7878
|
||||||
|
fish_color_keyword 8839ef
|
||||||
|
fish_color_quote 40a02b
|
||||||
|
fish_color_redirection ea76cb
|
||||||
|
fish_color_end fe640b
|
||||||
|
fish_color_comment 8c8fa1
|
||||||
|
fish_color_error d20f39
|
||||||
|
fish_color_gray 9ca0b0
|
||||||
|
fish_color_selection --background=ccd0da
|
||||||
|
fish_color_search_match --background=ccd0da
|
||||||
|
fish_color_option 40a02b
|
||||||
|
fish_color_operator ea76cb
|
||||||
|
fish_color_escape e64553
|
||||||
|
fish_color_autosuggestion 9ca0b0
|
||||||
|
fish_color_cancel d20f39
|
||||||
|
fish_color_cwd df8e1d
|
||||||
|
fish_color_user 179299
|
||||||
|
fish_color_host 1e66f5
|
||||||
|
fish_color_host_remote 40a02b
|
||||||
|
fish_color_status d20f39
|
||||||
|
fish_pager_color_progress 9ca0b0
|
||||||
|
fish_pager_color_prefix ea76cb
|
||||||
|
fish_pager_color_completion 4c4f69
|
||||||
|
fish_pager_color_description 9ca0b0
|
||||||
|
|
||||||
|
[dark]
|
||||||
|
# preferred_background: 303446
|
||||||
|
fish_color_normal c6d0f5
|
||||||
|
fish_color_command 8caaee
|
||||||
|
fish_color_param eebebe
|
||||||
|
fish_color_keyword ca9ee6
|
||||||
|
fish_color_quote a6d189
|
||||||
|
fish_color_redirection f4b8e4
|
||||||
|
fish_color_end ef9f76
|
||||||
|
fish_color_comment 838ba7
|
||||||
|
fish_color_error e78284
|
||||||
|
fish_color_gray 737994
|
||||||
|
fish_color_selection --background=414559
|
||||||
|
fish_color_search_match --background=414559
|
||||||
|
fish_color_option a6d189
|
||||||
|
fish_color_operator f4b8e4
|
||||||
|
fish_color_escape ea999c
|
||||||
|
fish_color_autosuggestion 737994
|
||||||
|
fish_color_cancel e78284
|
||||||
|
fish_color_cwd e5c890
|
||||||
|
fish_color_user 81c8be
|
||||||
|
fish_color_host 8caaee
|
||||||
|
fish_color_host_remote a6d189
|
||||||
|
fish_color_status e78284
|
||||||
|
fish_pager_color_progress 737994
|
||||||
|
fish_pager_color_prefix f4b8e4
|
||||||
|
fish_pager_color_completion c6d0f5
|
||||||
|
fish_pager_color_description 737994
|
||||||
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# name: 'Catppuccin Latte'
|
|
||||||
# url: 'https://github.com/catppuccin/fish'
|
|
||||||
# preferred_background: eff1f5
|
|
||||||
|
|
||||||
fish_color_normal 4c4f69
|
|
||||||
fish_color_command 1e66f5
|
|
||||||
fish_color_param dd7878
|
|
||||||
fish_color_keyword d20f39
|
|
||||||
fish_color_quote 40a02b
|
|
||||||
fish_color_redirection ea76cb
|
|
||||||
fish_color_end fe640b
|
|
||||||
fish_color_comment 8c8fa1
|
|
||||||
fish_color_error d20f39
|
|
||||||
fish_color_gray 9ca0b0
|
|
||||||
fish_color_selection --background=ccd0da
|
|
||||||
fish_color_search_match --background=ccd0da
|
|
||||||
fish_color_option 40a02b
|
|
||||||
fish_color_operator ea76cb
|
|
||||||
fish_color_escape e64553
|
|
||||||
fish_color_autosuggestion 9ca0b0
|
|
||||||
fish_color_cancel d20f39
|
|
||||||
fish_color_cwd df8e1d
|
|
||||||
fish_color_user 179299
|
|
||||||
fish_color_host 1e66f5
|
|
||||||
fish_color_host_remote 40a02b
|
|
||||||
fish_color_status d20f39
|
|
||||||
fish_pager_color_progress 9ca0b0
|
|
||||||
fish_pager_color_prefix ea76cb
|
|
||||||
fish_pager_color_completion 4c4f69
|
|
||||||
fish_pager_color_description 9ca0b0
|
|
||||||
61
config/fish/themes/Catppuccin Macchiato.theme
Normal file
61
config/fish/themes/Catppuccin Macchiato.theme
Normal file
@@ -0,0 +1,61 @@
|
|||||||
|
# name: 'Catppuccin Macchiato'
|
||||||
|
# url: 'https://github.com/catppuccin/fish'
|
||||||
|
|
||||||
|
[light]
|
||||||
|
# preferred_background: eff1f5
|
||||||
|
fish_color_normal 4c4f69
|
||||||
|
fish_color_command 1e66f5
|
||||||
|
fish_color_param dd7878
|
||||||
|
fish_color_keyword 8839ef
|
||||||
|
fish_color_quote 40a02b
|
||||||
|
fish_color_redirection ea76cb
|
||||||
|
fish_color_end fe640b
|
||||||
|
fish_color_comment 8c8fa1
|
||||||
|
fish_color_error d20f39
|
||||||
|
fish_color_gray 9ca0b0
|
||||||
|
fish_color_selection --background=ccd0da
|
||||||
|
fish_color_search_match --background=ccd0da
|
||||||
|
fish_color_option 40a02b
|
||||||
|
fish_color_operator ea76cb
|
||||||
|
fish_color_escape e64553
|
||||||
|
fish_color_autosuggestion 9ca0b0
|
||||||
|
fish_color_cancel d20f39
|
||||||
|
fish_color_cwd df8e1d
|
||||||
|
fish_color_user 179299
|
||||||
|
fish_color_host 1e66f5
|
||||||
|
fish_color_host_remote 40a02b
|
||||||
|
fish_color_status d20f39
|
||||||
|
fish_pager_color_progress 9ca0b0
|
||||||
|
fish_pager_color_prefix ea76cb
|
||||||
|
fish_pager_color_completion 4c4f69
|
||||||
|
fish_pager_color_description 9ca0b0
|
||||||
|
|
||||||
|
[dark]
|
||||||
|
# preferred_background: 24273a
|
||||||
|
fish_color_normal cad3f5
|
||||||
|
fish_color_command 8aadf4
|
||||||
|
fish_color_param f0c6c6
|
||||||
|
fish_color_keyword c6a0f6
|
||||||
|
fish_color_quote a6da95
|
||||||
|
fish_color_redirection f5bde6
|
||||||
|
fish_color_end f5a97f
|
||||||
|
fish_color_comment 8087a2
|
||||||
|
fish_color_error ed8796
|
||||||
|
fish_color_gray 6e738d
|
||||||
|
fish_color_selection --background=363a4f
|
||||||
|
fish_color_search_match --background=363a4f
|
||||||
|
fish_color_option a6da95
|
||||||
|
fish_color_operator f5bde6
|
||||||
|
fish_color_escape ee99a0
|
||||||
|
fish_color_autosuggestion 6e738d
|
||||||
|
fish_color_cancel ed8796
|
||||||
|
fish_color_cwd eed49f
|
||||||
|
fish_color_user 8bd5ca
|
||||||
|
fish_color_host 8aadf4
|
||||||
|
fish_color_host_remote a6da95
|
||||||
|
fish_color_status ed8796
|
||||||
|
fish_pager_color_progress 6e738d
|
||||||
|
fish_pager_color_prefix f5bde6
|
||||||
|
fish_pager_color_completion cad3f5
|
||||||
|
fish_pager_color_description 6e738d
|
||||||
|
|
||||||
@@ -1,11 +1,41 @@
|
|||||||
# name: 'Catppuccin Mocha'
|
# name: 'Catppuccin Mocha'
|
||||||
# url: 'https://github.com/catppuccin/fish'
|
# url: 'https://github.com/catppuccin/fish'
|
||||||
# preferred_background: 1e1e2e
|
|
||||||
|
|
||||||
|
[light]
|
||||||
|
# preferred_background: eff1f5
|
||||||
|
fish_color_normal 4c4f69
|
||||||
|
fish_color_command 1e66f5
|
||||||
|
fish_color_param dd7878
|
||||||
|
fish_color_keyword 8839ef
|
||||||
|
fish_color_quote 40a02b
|
||||||
|
fish_color_redirection ea76cb
|
||||||
|
fish_color_end fe640b
|
||||||
|
fish_color_comment 8c8fa1
|
||||||
|
fish_color_error d20f39
|
||||||
|
fish_color_gray 9ca0b0
|
||||||
|
fish_color_selection --background=ccd0da
|
||||||
|
fish_color_search_match --background=ccd0da
|
||||||
|
fish_color_option 40a02b
|
||||||
|
fish_color_operator ea76cb
|
||||||
|
fish_color_escape e64553
|
||||||
|
fish_color_autosuggestion 9ca0b0
|
||||||
|
fish_color_cancel d20f39
|
||||||
|
fish_color_cwd df8e1d
|
||||||
|
fish_color_user 179299
|
||||||
|
fish_color_host 1e66f5
|
||||||
|
fish_color_host_remote 40a02b
|
||||||
|
fish_color_status d20f39
|
||||||
|
fish_pager_color_progress 9ca0b0
|
||||||
|
fish_pager_color_prefix ea76cb
|
||||||
|
fish_pager_color_completion 4c4f69
|
||||||
|
fish_pager_color_description 9ca0b0
|
||||||
|
|
||||||
|
[dark]
|
||||||
|
# preferred_background: 1e1e2e
|
||||||
fish_color_normal cdd6f4
|
fish_color_normal cdd6f4
|
||||||
fish_color_command 89b4fa
|
fish_color_command 89b4fa
|
||||||
fish_color_param f2cdcd
|
fish_color_param f2cdcd
|
||||||
fish_color_keyword f38ba8
|
fish_color_keyword cba6f7
|
||||||
fish_color_quote a6e3a1
|
fish_color_quote a6e3a1
|
||||||
fish_color_redirection f5c2e7
|
fish_color_redirection f5c2e7
|
||||||
fish_color_end fab387
|
fish_color_end fab387
|
||||||
@@ -28,3 +58,4 @@ fish_pager_color_progress 6c7086
|
|||||||
fish_pager_color_prefix f5c2e7
|
fish_pager_color_prefix f5c2e7
|
||||||
fish_pager_color_completion cdd6f4
|
fish_pager_color_completion cdd6f4
|
||||||
fish_pager_color_description 6c7086
|
fish_pager_color_description 6c7086
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
[General]
|
|
||||||
ApplicationUpdateChannel=release
|
|
||||||
CheckApplicatonUpdates=true
|
|
||||||
FirmwareUpdateChannel=release
|
|
||||||
LastFolderUrl=/Users/ivuorinen
|
|
||||||
ShowHiddenFiles=false
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# vim: ft=ghostty
|
|
||||||
theme = "light:tokyonight-day,dark:tokyonight-storm"
|
|
||||||
font-family = "JetBrainsMono Nerd Font Mono"
|
|
||||||
|
|
||||||
background-blur-radius = 15
|
|
||||||
background-opacity = 0.95
|
|
||||||
|
|
||||||
clipboard-read = allow
|
|
||||||
clipboard-write = allow
|
|
||||||
cursor-style = bar
|
|
||||||
custom-shader-animation = true
|
|
||||||
gtk-single-instance = true
|
|
||||||
mouse-hide-while-typing = true
|
|
||||||
shell-integration-features = true
|
|
||||||
window-theme = system
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
|
||||||
# The parser is also very primitive, and not human-friendly.
|
|
||||||
htop_version=3.4.1
|
|
||||||
config_reader_min_version=3
|
|
||||||
fields=0 48 17 18 38 39 2 46 47 49 1
|
|
||||||
hide_kernel_threads=1
|
|
||||||
hide_userland_threads=0
|
|
||||||
hide_running_in_container=0
|
|
||||||
shadow_other_users=0
|
|
||||||
show_thread_names=0
|
|
||||||
show_program_path=1
|
|
||||||
highlight_base_name=0
|
|
||||||
highlight_deleted_exe=1
|
|
||||||
shadow_distribution_path_prefix=0
|
|
||||||
highlight_megabytes=1
|
|
||||||
highlight_threads=1
|
|
||||||
highlight_changes=0
|
|
||||||
highlight_changes_delay_secs=5
|
|
||||||
find_comm_in_cmdline=1
|
|
||||||
strip_exe_from_cmdline=1
|
|
||||||
show_merged_command=0
|
|
||||||
header_margin=1
|
|
||||||
screen_tabs=1
|
|
||||||
detailed_cpu_time=0
|
|
||||||
cpu_count_from_one=0
|
|
||||||
show_cpu_usage=1
|
|
||||||
show_cpu_frequency=0
|
|
||||||
show_cached_memory=1
|
|
||||||
update_process_names=0
|
|
||||||
account_guest_in_cpu_meter=0
|
|
||||||
color_scheme=0
|
|
||||||
enable_mouse=1
|
|
||||||
delay=15
|
|
||||||
hide_function_bar=0
|
|
||||||
header_layout=two_50_50
|
|
||||||
column_meters_0=LeftCPUs2 Memory Swap
|
|
||||||
column_meter_modes_0=1 1 1
|
|
||||||
column_meters_1=RightCPUs2 Tasks LoadAverage Uptime
|
|
||||||
column_meter_modes_1=1 2 2 2
|
|
||||||
tree_view=0
|
|
||||||
sort_key=46
|
|
||||||
tree_sort_key=0
|
|
||||||
sort_direction=-1
|
|
||||||
tree_sort_direction=1
|
|
||||||
tree_view_always_by_pid=0
|
|
||||||
all_branches_collapsed=0
|
|
||||||
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command
|
|
||||||
.sort_key=PERCENT_CPU
|
|
||||||
.tree_sort_key=PID
|
|
||||||
.tree_view_always_by_pid=0
|
|
||||||
.tree_view=0
|
|
||||||
.sort_direction=-1
|
|
||||||
.tree_sort_direction=1
|
|
||||||
.all_branches_collapsed=0
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
# Disable the startup message
|
|
||||||
startup_message off
|
|
||||||
|
|
||||||
# Set a large scrollback buffer
|
|
||||||
defscrollback 32000
|
|
||||||
|
|
||||||
# Always start `screen` with UTF-8 enabled (`screen -U`)
|
|
||||||
defutf8 on
|
|
||||||
|
|
||||||
# Scroll with mouse wheel (http://stackoverflow.com/a/1125947)
|
|
||||||
termcapinfo xterm* ti@:te@
|
|
||||||
|
|
||||||
# Some settings for screen + vim
|
|
||||||
term xterm-256color
|
|
||||||
maptimeout 10
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
set tabsize 2
|
|
||||||
18
config/nbrc
18
config/nbrc
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
###############################################################################
|
|
||||||
# .nbrc
|
|
||||||
#
|
|
||||||
# Configuration file for `nb`, a command line note-taking, bookmarking,
|
|
||||||
# and knowledge base application with encryption, search, Git-backed syncing,
|
|
||||||
# and more in a single portable script.
|
|
||||||
#
|
|
||||||
# Edit this file manually or manage settings using the `nb settings`
|
|
||||||
# subcommand. Configuration options are set as environment variables, eg:
|
|
||||||
# export NB_ENCRYPTION_TOOL=gpg
|
|
||||||
#
|
|
||||||
# https://github.com/xwmx/nb
|
|
||||||
###############################################################################
|
|
||||||
|
|
||||||
export NB_DIR="${NB_DIR:-$HOME/.local/state/nb}" # Set by `nb` • Mon May 8 15:25:12 EEST 2023
|
|
||||||
|
|
||||||
export NB_COLOR_THEME="${NB_COLOR_THEME:-unicorn}" # Set by `nb` • Mon May 8 15:41:22 EEST 2023
|
|
||||||
@@ -1,154 +0,0 @@
|
|||||||
# Get editor completions based on the config schema
|
|
||||||
"$schema" = 'https://starship.rs/config-schema.json'
|
|
||||||
|
|
||||||
format = """
|
|
||||||
$os\
|
|
||||||
$directory\
|
|
||||||
$git_branch\
|
|
||||||
$git_state\
|
|
||||||
$git_status\
|
|
||||||
$fill \
|
|
||||||
$battery\
|
|
||||||
$username\
|
|
||||||
$hostname\
|
|
||||||
$aws\
|
|
||||||
$gcloud\
|
|
||||||
$conda\
|
|
||||||
$golang\
|
|
||||||
$nodejs\
|
|
||||||
$php\
|
|
||||||
$python\
|
|
||||||
$package\
|
|
||||||
$line_break\
|
|
||||||
$character"""
|
|
||||||
|
|
||||||
# Timeout for commands executed by starship (in milliseconds).
|
|
||||||
command_timeout = 1500
|
|
||||||
|
|
||||||
[character]
|
|
||||||
success_symbol = "[→](bold green)"
|
|
||||||
error_symbol = "[→](red)"
|
|
||||||
vimcmd_symbol = "[←](green)"
|
|
||||||
|
|
||||||
[aws]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol($profile )(\($region\) )(\[$duration\] )]($style)'
|
|
||||||
|
|
||||||
[cmd_duration]
|
|
||||||
disabled = true
|
|
||||||
|
|
||||||
[directory]
|
|
||||||
read_only = " "
|
|
||||||
style = "blue"
|
|
||||||
before_repo_root_style = "white"
|
|
||||||
truncation_symbol = "…/"
|
|
||||||
|
|
||||||
[docker_context]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol$context]($style) '
|
|
||||||
|
|
||||||
[fill]
|
|
||||||
symbol = '·'
|
|
||||||
style = 'bold black'
|
|
||||||
|
|
||||||
[gcloud]
|
|
||||||
format = '[($symbol)$account(@$domain)(\($region\))]($style) '
|
|
||||||
|
|
||||||
[git_branch]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol$branch(:$remote_branch)]($style) '
|
|
||||||
truncation_length = 20
|
|
||||||
truncation_symbol = '…'
|
|
||||||
ignore_branches = ['master', 'main']
|
|
||||||
|
|
||||||
[git_status]
|
|
||||||
up_to_date = '✓'
|
|
||||||
staged = '[++\($count\)](green)'
|
|
||||||
|
|
||||||
[git_state]
|
|
||||||
format = '\([$state( $progress_current/$progress_total)]($style)\) '
|
|
||||||
style = "bright-black"
|
|
||||||
|
|
||||||
[git_metrics]
|
|
||||||
added_style = 'bold blue'
|
|
||||||
format = '[+$added]($added_style)/[-$deleted]($deleted_style) '
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[golang]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol($version )]($style) '
|
|
||||||
|
|
||||||
[hostname]
|
|
||||||
ssh_symbol = " "
|
|
||||||
ssh_only = false
|
|
||||||
format = '[$ssh_symbol](bold blue)[$hostname](bold red) '
|
|
||||||
|
|
||||||
[lua]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
|
|
||||||
[nodejs]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
|
|
||||||
[os]
|
|
||||||
format = "[$symbol]($style) "
|
|
||||||
style = "bold blue"
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[os.symbols]
|
|
||||||
Alpaquita = " "
|
|
||||||
Alpine = " "
|
|
||||||
Amazon = " "
|
|
||||||
Android = " "
|
|
||||||
Arch = " "
|
|
||||||
Artix = " "
|
|
||||||
CentOS = " "
|
|
||||||
Debian = " "
|
|
||||||
DragonFly = " "
|
|
||||||
Emscripten = " "
|
|
||||||
EndeavourOS = " "
|
|
||||||
Fedora = " "
|
|
||||||
FreeBSD = " "
|
|
||||||
Garuda = " "
|
|
||||||
Gentoo = " "
|
|
||||||
HardenedBSD = " "
|
|
||||||
Illumos = " "
|
|
||||||
Linux = " "
|
|
||||||
Mabox = " "
|
|
||||||
Macos = " "
|
|
||||||
Manjaro = " "
|
|
||||||
Mariner = " "
|
|
||||||
MidnightBSD = " "
|
|
||||||
Mint = " "
|
|
||||||
NetBSD = " "
|
|
||||||
NixOS = " "
|
|
||||||
OpenBSD = " "
|
|
||||||
openSUSE = " "
|
|
||||||
OracleLinux = " "
|
|
||||||
Pop = " "
|
|
||||||
Raspbian = " "
|
|
||||||
Redhat = " "
|
|
||||||
RedHatEnterprise = " "
|
|
||||||
Redox = " "
|
|
||||||
Solus = " "
|
|
||||||
SUSE = " "
|
|
||||||
Ubuntu = " "
|
|
||||||
Unknown = " "
|
|
||||||
Windows = " "
|
|
||||||
|
|
||||||
[package]
|
|
||||||
symbol = " "
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
|
|
||||||
[php]
|
|
||||||
format = '[$symbol($version )]($style)'
|
|
||||||
version_format = '${major}.${minor}'
|
|
||||||
|
|
||||||
[python]
|
|
||||||
symbol = " "
|
|
||||||
format = "[$virtualenv]($style) "
|
|
||||||
|
|
||||||
[username]
|
|
||||||
format = "[$user]($style) "
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
# [Created by task 2.6.2 5/11/2023 09:33:14]
|
|
||||||
# Taskwarrior program configuration file.
|
|
||||||
# For more documentation, see https://taskwarrior.org or try 'man task', 'man task-color',
|
|
||||||
# 'man task-sync' or 'man taskrc'
|
|
||||||
|
|
||||||
# Here is an example of entries that use the default, override and blank values
|
|
||||||
# variable=foo -- By specifying a value, this overrides the default
|
|
||||||
# variable= -- By specifying no value, this means no default
|
|
||||||
# #variable=foo -- By commenting out the line, or deleting it, this uses the default
|
|
||||||
|
|
||||||
# You can also refence environment variables:
|
|
||||||
# variable=$HOME/task
|
|
||||||
# variable=$VALUE
|
|
||||||
|
|
||||||
# Use the command 'task show' to see all defaults and overrides
|
|
||||||
|
|
||||||
# Files
|
|
||||||
data.location=$XDG_DATA_HOME/task/
|
|
||||||
|
|
||||||
# To use the default location of the XDG directories,
|
|
||||||
# move this configuration file from ~/.taskrc to ~/.config/task/taskrc and uncomment below
|
|
||||||
|
|
||||||
#data.location=$XDG_DATA_HOME/task
|
|
||||||
#hooks.location=~/.config/task/hooks
|
|
||||||
|
|
||||||
# Color theme (uncomment one to use)
|
|
||||||
#include light-16.theme
|
|
||||||
#include light-256.theme
|
|
||||||
#include dark-16.theme
|
|
||||||
#include dark-256.theme
|
|
||||||
#include dark-red-256.theme
|
|
||||||
#include dark-green-256.theme
|
|
||||||
#include dark-blue-256.theme
|
|
||||||
#include dark-violets-256.theme
|
|
||||||
#include dark-yellow-green.theme
|
|
||||||
#include dark-gray-256.theme
|
|
||||||
#include dark-gray-blue-256.theme
|
|
||||||
#include solarized-dark-256.theme
|
|
||||||
#include solarized-light-256.theme
|
|
||||||
#include no-color.theme
|
|
||||||
|
|
||||||
weekstart=monday
|
|
||||||
|
|
||||||
news.version=2.6.0
|
|
||||||
|
|
||||||
default.project=Inbox
|
|
||||||
calendar.details=full
|
|
||||||
calendar.holidays=sparse
|
|
||||||
recurrence=on
|
|
||||||
|
|
||||||
uda.taskwarrior-tui.keyconfig.quit=q
|
|
||||||
uda.taskwarrior-tui.keyconfig.refresh=r
|
|
||||||
uda.taskwarrior-tui.keyconfig.go-to-bottom=G
|
|
||||||
uda.taskwarrior-tui.keyconfig.go-to-top=g
|
|
||||||
uda.taskwarrior-tui.keyconfig.down=j
|
|
||||||
uda.taskwarrior-tui.keyconfig.up=k
|
|
||||||
uda.taskwarrior-tui.keyconfig.page-down=J
|
|
||||||
uda.taskwarrior-tui.keyconfig.page-up=K
|
|
||||||
uda.taskwarrior-tui.keyconfig.delete=x
|
|
||||||
uda.taskwarrior-tui.keyconfig.done=d
|
|
||||||
uda.taskwarrior-tui.keyconfig.start-stop=s
|
|
||||||
uda.taskwarrior-tui.keyconfig.quick-tag=t
|
|
||||||
uda.taskwarrior-tui.keyconfig.undo=u
|
|
||||||
uda.taskwarrior-tui.keyconfig.edit=e
|
|
||||||
uda.taskwarrior-tui.keyconfig.modify=m
|
|
||||||
uda.taskwarrior-tui.keyconfig.shell=!
|
|
||||||
uda.taskwarrior-tui.keyconfig.log=l
|
|
||||||
uda.taskwarrior-tui.keyconfig.add=a
|
|
||||||
uda.taskwarrior-tui.keyconfig.annotate=A
|
|
||||||
uda.taskwarrior-tui.keyconfig.filter=/
|
|
||||||
uda.taskwarrior-tui.keyconfig.zoom=z
|
|
||||||
uda.taskwarrior-tui.keyconfig.context-menu=c
|
|
||||||
uda.taskwarrior-tui.keyconfig.next-tab=.
|
|
||||||
uda.taskwarrior-tui.keyconfig.previous-tab=,
|
|
||||||
|
|
||||||
taskd.certificate=$XDG_DATA_HOME/task/private.certificate.pem
|
|
||||||
taskd.key=$XDG_DATA_HOME/task/private.key.pem
|
|
||||||
taskd.ca=$XDG_DATA_HOME/task/ca.cert.pem
|
|
||||||
taskd.server=inthe.am:53589
|
|
||||||
taskd.credentials=inthe_am/ivuorinen/b99a4970-94fb-4fb8-b9fe-e1a8140dd44d
|
|
||||||
taskd.trust=strict
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
[style.description]
|
|
||||||
underline = false
|
|
||||||
bold = false
|
|
||||||
italic = false
|
|
||||||
|
|
||||||
[style.command_name]
|
|
||||||
foreground = "cyan"
|
|
||||||
underline = false
|
|
||||||
bold = false
|
|
||||||
italic = false
|
|
||||||
|
|
||||||
[style.example_text]
|
|
||||||
foreground = "green"
|
|
||||||
underline = false
|
|
||||||
bold = false
|
|
||||||
italic = false
|
|
||||||
|
|
||||||
[style.example_code]
|
|
||||||
foreground = "cyan"
|
|
||||||
underline = false
|
|
||||||
bold = false
|
|
||||||
italic = false
|
|
||||||
|
|
||||||
[style.example_variable]
|
|
||||||
foreground = "cyan"
|
|
||||||
underline = true
|
|
||||||
bold = false
|
|
||||||
italic = false
|
|
||||||
|
|
||||||
[display]
|
|
||||||
compact = false
|
|
||||||
use_pager = false
|
|
||||||
|
|
||||||
[updates]
|
|
||||||
auto_update = false
|
|
||||||
auto_update_interval_hours = 720
|
|
||||||
|
|
||||||
[directories]
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
default_session = "main"
|
|
||||||
display_full_path = true
|
|
||||||
|
|
||||||
[[search_dirs]]
|
|
||||||
path = "~/Code"
|
|
||||||
depth = 3
|
|
||||||
|
|
||||||
[picker_colors]
|
|
||||||
highlight_color = "#31748f"
|
|
||||||
highlight_text_color = "#e0def4"
|
|
||||||
border_color = "#524F67"
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
https://wfxr.mit-license.org/2018
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#===============================================================================
|
|
||||||
# Author: Wenxuan
|
|
||||||
# Email: wenxuangm@gmail.com
|
|
||||||
# Created: 2018-04-06 12:12
|
|
||||||
#===============================================================================
|
|
||||||
get_fzf_options()
|
|
||||||
{
|
|
||||||
local fzf_options
|
|
||||||
local fzf_default_options='-w 100% -h 50% --multi -0 --no-preview'
|
|
||||||
fzf_options="$(tmux show -gqv '@fzf-url-fzf-options')"
|
|
||||||
[ -n "$fzf_options" ] && echo "$fzf_options" || echo "$fzf_default_options"
|
|
||||||
}
|
|
||||||
|
|
||||||
fzf_filter()
|
|
||||||
{
|
|
||||||
eval "fzf-tmux $(get_fzf_options)"
|
|
||||||
}
|
|
||||||
|
|
||||||
custom_open=$3
|
|
||||||
open_url()
|
|
||||||
{
|
|
||||||
if [[ -n $custom_open ]]; then
|
|
||||||
$custom_open "$@"
|
|
||||||
elif hash xdg-open &> /dev/null; then
|
|
||||||
nohup xdg-open "$@"
|
|
||||||
elif hash open &> /dev/null; then
|
|
||||||
nohup open "$@"
|
|
||||||
elif [[ -n $BROWSER ]]; then
|
|
||||||
nohup "$BROWSER" "$@"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
limit='screen'
|
|
||||||
[[ $# -ge 2 ]] && limit=$2
|
|
||||||
|
|
||||||
if [[ $limit == 'screen' ]]; then
|
|
||||||
content="$(tmux capture-pane -J -p -e | sed -r 's/\x1B\[[0-9;]*[mK]//g'))"
|
|
||||||
else
|
|
||||||
content="$(tmux capture-pane -J -p -e -S -"$limit" | sed -r 's/\x1B\[[0-9;]*[mK]//g'))"
|
|
||||||
fi
|
|
||||||
|
|
||||||
urls=$(echo "$content" | grep -oE '(https?|ftp|file):/?//[-A-Za-z0-9+&@#/%?=~_|!:,.;]*[-A-Za-z0-9+&@#/%=~_|]')
|
|
||||||
wwws=$(echo "$content" | grep -oE '(http?s://)?www\.[a-zA-Z](-?[a-zA-Z0-9])+\.[a-zA-Z]{2,}(/\S+)*' | grep -vE '^https?://' | sed 's/^\(.*\)$/http:\/\/\1/')
|
|
||||||
ips=$(echo "$content" | grep -oE '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}(:[0-9]{1,5})?(/\S+)*' | sed 's/^\(.*\)$/http:\/\/\1/')
|
|
||||||
gits=$(echo "$content" | grep -oE '(ssh://)?git@\S*' | sed 's/:/\//g' | sed 's/^\(ssh\/\/\/\)\{0,1\}git@\(.*\)$/https:\/\/\2/')
|
|
||||||
gh=$(echo "$content" | grep -oE "['\"]([_A-Za-z0-9-]*/[_.A-Za-z0-9-]*)['\"]" | sed "s/['\"]//g" | sed 's#.#https://github.com/&#')
|
|
||||||
|
|
||||||
if [[ $# -ge 1 && $1 != '' ]]; then
|
|
||||||
extras=$(echo "$content" | eval "$1")
|
|
||||||
fi
|
|
||||||
|
|
||||||
items=$(
|
|
||||||
printf '%s\n' "${urls[@]}" "${wwws[@]}" "${gh[@]}" "${ips[@]}" "${gits[@]}" "${extras[@]}" \
|
|
||||||
| grep -v '^$' \
|
|
||||||
| sort -u \
|
|
||||||
| nl -w3 -s ' '
|
|
||||||
)
|
|
||||||
[ -z "$items" ] && tmux display 'tmux-fzf-url: no URLs found' && exit
|
|
||||||
|
|
||||||
fzf_filter <<< "$items" | awk '{print $2}' \
|
|
||||||
| while read -r chosen; do
|
|
||||||
open_url "$chosen" &> "/tmp/tmux-$(id -u)-fzf-url.log"
|
|
||||||
done
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
#===============================================================================
|
|
||||||
# Author: Wenxuan
|
|
||||||
# Email: wenxuangm@gmail.com
|
|
||||||
# Created: 2018-04-06 09:30
|
|
||||||
#===============================================================================
|
|
||||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
||||||
|
|
||||||
# $1: option
|
|
||||||
# $2: default value
|
|
||||||
tmux_get() {
|
|
||||||
local value
|
|
||||||
value="$(tmux show -gqv "$1")"
|
|
||||||
[ -n "$value" ] && echo "$value" || echo "$2"
|
|
||||||
}
|
|
||||||
|
|
||||||
key="$(tmux_get '@fzf-url-bind' 'u')"
|
|
||||||
history_limit="$(tmux_get '@fzf-url-history-limit' 'screen')"
|
|
||||||
extra_filter="$(tmux_get '@fzf-url-extra-filter' '')"
|
|
||||||
custom_open="$(tmux_get '@fzf-url-open' '')"
|
|
||||||
echo "$extra_filter" >/tmp/filter
|
|
||||||
|
|
||||||
tmux bind-key "$key" run -b "$SCRIPT_DIR/fzf-url.sh '$extra_filter' $history_limit '$custom_open'"
|
|
||||||
Submodule config/tmux/plugins/tmux-mode-indicator deleted from 7027903adc
Submodule config/tmux/plugins/tmux-sensible deleted from 2ce7679f9d
Submodule config/tmux/plugins/tmux-window-name deleted from 9a75967ced
Submodule config/tmux/plugins/tmux-yank deleted from fd8000238b
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Get session list and pipe it to gum for selection
|
|
||||||
SESH_LIST=$(
|
|
||||||
sesh list -i \
|
|
||||||
| gum filter \
|
|
||||||
--limit 1 \
|
|
||||||
--no-sort \
|
|
||||||
--fuzzy \
|
|
||||||
--placeholder 'Pick a sesh' \
|
|
||||||
--height 50 \
|
|
||||||
--prompt='⚡'
|
|
||||||
)
|
|
||||||
|
|
||||||
# If a session was selected, connect to it
|
|
||||||
if [ "$SESH_LIST" != "" ]; then
|
|
||||||
sesh connect "$SESH_LIST"
|
|
||||||
fi
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/usr/bin/env fish
|
|
||||||
|
|
||||||
set selection (sesh list --icons | fzf-tmux -p 80%,70% \
|
|
||||||
--no-sort --ansi --border-label ' sesh ' --prompt '⚡ ' \
|
|
||||||
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find' \
|
|
||||||
--bind 'tab:down,btab:up' \
|
|
||||||
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --icons)' \
|
|
||||||
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)' \
|
|
||||||
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)' \
|
|
||||||
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)' \
|
|
||||||
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)' \
|
|
||||||
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)' \
|
|
||||||
--preview-window 'right:55%' \
|
|
||||||
--preview 'sesh preview {}')
|
|
||||||
|
|
||||||
if test -n "$selection"
|
|
||||||
sesh connect "$selection"
|
|
||||||
end
|
|
||||||
79
config/tmux/sesh.sh
Executable file
79
config/tmux/sesh.sh
Executable file
@@ -0,0 +1,79 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# Unified sesh session picker with cascading tool detection:
|
||||||
|
# 1. gum — simple fuzzy filter
|
||||||
|
# 2. fzf-tmux — rich UI with keybinds, preview, session kill
|
||||||
|
# 3. fzf — same as fzf-tmux but inline
|
||||||
|
# 4. select — bare minimum numbered menu
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Fall back to native tmux session picker if sesh is not installed
|
||||||
|
if ! command -v sesh &>/dev/null; then
|
||||||
|
tmux choose-tree -Zs
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
pick_with_gum() {
|
||||||
|
sesh list -i \
|
||||||
|
| gum filter \
|
||||||
|
--limit 1 \
|
||||||
|
--no-sort \
|
||||||
|
--fuzzy \
|
||||||
|
--placeholder 'Pick a sesh' \
|
||||||
|
--height 50 \
|
||||||
|
--prompt='⚡'
|
||||||
|
}
|
||||||
|
|
||||||
|
FZF_COMMON_OPTS=(
|
||||||
|
--no-sort --ansi
|
||||||
|
--border-label ' sesh '
|
||||||
|
--prompt '⚡ '
|
||||||
|
--header ' ^a all ^t tmux ^g configs ^x zoxide ^d tmux kill ^f find'
|
||||||
|
--bind 'tab:down,btab:up'
|
||||||
|
--bind 'ctrl-a:change-prompt(⚡ )+reload(sesh list --icons)'
|
||||||
|
--bind 'ctrl-t:change-prompt(🪟 )+reload(sesh list -t --icons)'
|
||||||
|
--bind 'ctrl-g:change-prompt(⚙️ )+reload(sesh list -c --icons)'
|
||||||
|
--bind 'ctrl-x:change-prompt(📁 )+reload(sesh list -z --icons)'
|
||||||
|
--bind 'ctrl-f:change-prompt(🔎 )+reload(fd -H -d 2 -t d -E .Trash . ~)'
|
||||||
|
--bind 'ctrl-d:execute(tmux kill-session -t {2..})+change-prompt(⚡ )+reload(sesh list --icons)'
|
||||||
|
--preview-window 'right:55%'
|
||||||
|
--preview 'sesh preview {}'
|
||||||
|
)
|
||||||
|
|
||||||
|
pick_with_fzf_tmux() {
|
||||||
|
sesh list --icons | fzf-tmux -p 80%,70% "${FZF_COMMON_OPTS[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pick_with_fzf() {
|
||||||
|
sesh list --icons | fzf "${FZF_COMMON_OPTS[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
pick_with_select() {
|
||||||
|
local sessions
|
||||||
|
mapfile -t sessions < <(sesh list)
|
||||||
|
if [[ ${#sessions[@]} -eq 0 ]]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
PS3="Select session: "
|
||||||
|
select choice in "${sessions[@]}"; do
|
||||||
|
if [[ -n "${choice-}" ]]; then
|
||||||
|
printf '%s' "$choice"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Cascading tool detection
|
||||||
|
if command -v gum &>/dev/null; then
|
||||||
|
selection=$(pick_with_gum)
|
||||||
|
elif command -v fzf-tmux &>/dev/null; then
|
||||||
|
selection=$(pick_with_fzf_tmux)
|
||||||
|
elif command -v fzf &>/dev/null; then
|
||||||
|
selection=$(pick_with_fzf)
|
||||||
|
else
|
||||||
|
selection=$(pick_with_select)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -n "${selection-}" ]]; then
|
||||||
|
sesh connect "$selection"
|
||||||
|
fi
|
||||||
@@ -1 +1 @@
|
|||||||
set -g @catppuccin_flavor "mocha"
|
set -g @catppuccin_flavour "mocha"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
set -g @catppuccin_flavor "latte"
|
set -g @catppuccin_flavour "latte"
|
||||||
|
|||||||
@@ -15,19 +15,21 @@
|
|||||||
# -o : Set the option only if it is not already set.
|
# -o : Set the option only if it is not already set.
|
||||||
# -u : Unset the specified option.
|
# -u : Unset the specified option.
|
||||||
|
|
||||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
set -as terminal-features ",xterm-256color:RGB:clipboard:usstyle:strikethrough:overline"
|
||||||
|
|
||||||
# Enable proper color support
|
|
||||||
set -as terminal-features ",*:RGB"
|
|
||||||
|
|
||||||
|
set -s escape-time 0 # Address vim mode switching delay
|
||||||
|
set -s set-clipboard on # System clipboard via OSC 52
|
||||||
set -g default-terminal "tmux-256color" # Set default terminal to 256 colors
|
set -g default-terminal "tmux-256color" # Set default terminal to 256 colors
|
||||||
set -g detach-on-destroy off # don't detach tmux when killing a session
|
set -g detach-on-destroy off # don't detach tmux when killing a session
|
||||||
set -g display-time 0 # Hide clock
|
set -g display-time 0 # Hide clock
|
||||||
set -g focus-events on # Focus events enabled for terminals that support them
|
set -g focus-events on # Focus events enabled for terminals that support them
|
||||||
|
set -g history-limit 50000 # Increase scrollback buffer size
|
||||||
set -g mouse on # Mouse support
|
set -g mouse on # Mouse support
|
||||||
set -g set-titles on # Allow tmux to set the terminal title
|
set -g set-titles on # Allow tmux to set the terminal title
|
||||||
set -g status on # Setting status on
|
set -g status on # Setting status on
|
||||||
|
set -g status-interval 5 # Refresh status more often
|
||||||
set -g status-keys vi # vi keys to move between panes
|
set -g status-keys vi # vi keys to move between panes
|
||||||
|
set -wg aggressive-resize on # Better for grouped sessions and multi-monitor
|
||||||
|
|
||||||
# Keep Tmux alive when the initial command is finished
|
# Keep Tmux alive when the initial command is finished
|
||||||
set -g remain-on-exit off
|
set -g remain-on-exit off
|
||||||
@@ -41,19 +43,10 @@ set -g renumber-windows on
|
|||||||
# │ Theme │
|
# │ Theme │
|
||||||
# ╰──────────────────────────────────────────────────────────╯
|
# ╰──────────────────────────────────────────────────────────╯
|
||||||
|
|
||||||
set -g status-bg default
|
|
||||||
set -g status-justify left
|
|
||||||
set -g status-left ''
|
|
||||||
set -g status-left-length "0"
|
|
||||||
set -g status-position "bottom"
|
set -g status-position "bottom"
|
||||||
#set -g status-right "#S@#h #{tmux_mode_indicator}"
|
set -g @catppuccin_window_left_separator "█"
|
||||||
set -g status-right-length "50"
|
set -g @catppuccin_window_right_separator ""
|
||||||
#set -g window-status-current-format ' #I:#W#{?window_zoomed_flag, ◈ ,} '
|
set -g @catppuccin_window_middle_separator " "
|
||||||
#set -g window-status-format ' #I:#W '
|
|
||||||
set -g @catppuccin_status_background 'none'
|
|
||||||
set -g @catppuccin_window_flags 'icon'
|
|
||||||
set -g @catppuccin_window_text "#T"
|
|
||||||
set -g @catppuccin_window_current_text "#T"
|
|
||||||
|
|
||||||
# ╭──────────────────────────────────────────────────────────╮
|
# ╭──────────────────────────────────────────────────────────╮
|
||||||
# │ Bindings │
|
# │ Bindings │
|
||||||
@@ -69,11 +62,11 @@ set -g @catppuccin_window_current_text "#T"
|
|||||||
set -g prefix C-Space
|
set -g prefix C-Space
|
||||||
bind C-Space send-prefix
|
bind C-Space send-prefix
|
||||||
|
|
||||||
# Use Alt-arrow keys without prefix key to switch panes
|
# Use Ctrl-arrow keys without prefix key to switch panes
|
||||||
bind -n M-Left select-pane -L
|
bind -n C-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
bind -n C-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
bind -n C-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
bind -n C-Down select-pane -D
|
||||||
|
|
||||||
# Reload tmux config with <prefix> + r
|
# Reload tmux config with <prefix> + r
|
||||||
unbind r
|
unbind r
|
||||||
@@ -87,8 +80,16 @@ bind Escape copy-mode
|
|||||||
unbind p
|
unbind p
|
||||||
bind p paste-buffer
|
bind p paste-buffer
|
||||||
|
|
||||||
|
# copy-mode-vi: y copies to system clipboard, Y copies and pastes
|
||||||
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel
|
||||||
|
bind -T copy-mode-vi Y send-keys -X copy-pipe-and-cancel "tmux paste-buffer"
|
||||||
|
|
||||||
|
# easier switching between next/prev window
|
||||||
|
bind C-p previous-window
|
||||||
|
bind C-n next-window
|
||||||
|
|
||||||
# global sessions
|
# global sessions
|
||||||
bind -N "sesh selection" t display-popup -E "$HOME/.dotfiles/config/tmux/sesh-gum.sh"
|
bind -N "sesh selection" t display-popup -E "$HOME/.dotfiles/config/tmux/sesh.sh"
|
||||||
bind -N "last-session (via sesh) " L run-shell "sesh last"
|
bind -N "last-session (via sesh) " L run-shell "sesh last"
|
||||||
bind -N "sesh ui" N display-popup -E "sesh ui"
|
bind -N "sesh ui" N display-popup -E "sesh ui"
|
||||||
|
|
||||||
@@ -101,33 +102,16 @@ bind -N "sesh ui" N display-popup -E "sesh ui"
|
|||||||
# Plugin that lets you suspend local tmux session,
|
# Plugin that lets you suspend local tmux session,
|
||||||
# so that you can work with nested remote tmux session painlessly.
|
# so that you can work with nested remote tmux session painlessly.
|
||||||
# https://github.com/MunifTanjim/tmux-suspend
|
# https://github.com/MunifTanjim/tmux-suspend
|
||||||
# set -g @suspend_key 'F8' # Default is F12
|
set -g @suspend_key 'F8' # Default is F12
|
||||||
|
set -g @suspend_suspended_options " \
|
||||||
## A plugin to name your tmux windows smartly.
|
status-left-style::bg=brightblack\\,fg=black, \
|
||||||
## https://github.com/ofirgall/tmux-window-name
|
status-left:: ⏸ , \
|
||||||
### Maximum name length of a window
|
"
|
||||||
set -g @tmux_window_name_max_name_len "25"
|
|
||||||
### Replace $HOME with ~ in window names
|
|
||||||
set -g @tmux_window_dir_programs "['nvim', 'vim', 'vi', 'git']"
|
|
||||||
set -g @tmux_window_name_ignored_programs "['sqlite3', 'antidote', 'direnv', 'md5']" # Default is []
|
|
||||||
set -g @tmux_window_name_shells "['bash', 'fish', 'sh', 'zsh']"
|
|
||||||
set -g @tmux_window_name_substitute_sets "[('.+ipython2', 'ipython2'), ('.+ipython3', 'ipython3'), ('.+\.local', '.local'), ('.+asdf', 'asdf')]"
|
|
||||||
set -g @tmux_window_name_use_tilde "True"
|
|
||||||
|
|
||||||
# https://github.com/erikw/tmux-dark-notify
|
# https://github.com/erikw/tmux-dark-notify
|
||||||
set -g @dark-notify-theme-path-light "$HOME/.dotfiles/config/tmux/theme-light.conf"
|
set -g @dark-notify-theme-path-light "$HOME/.dotfiles/config/tmux/theme-light.conf"
|
||||||
set -g @dark-notify-theme-path-dark "$HOME/.dotfiles/config/tmux/theme-dark.conf"
|
set -g @dark-notify-theme-path-dark "$HOME/.dotfiles/config/tmux/theme-dark.conf"
|
||||||
|
|
||||||
## https://github.com/MunifTanjim/tmux-mode-indicator
|
|
||||||
set -g @mode_indicator_copy_mode_style 'bg=default,fg=yellow'
|
|
||||||
set -g @mode_indicator_empty_mode_style 'bg=default,fg=#7aa2f7'
|
|
||||||
set -g @mode_indicator_prefix_mode_style 'bg=default,fg=#7aa2f7'
|
|
||||||
set -g @mode_indicator_sync_mode_style 'bg=default,fg=red'
|
|
||||||
|
|
||||||
# https://github.com/wfxr/tmux-fzf-url
|
|
||||||
set -g @fzf-url-bind 'u'
|
|
||||||
set -g @fzf-url-history-limit '2000'
|
|
||||||
|
|
||||||
# https://github.com/tmux-plugins/tmux-continuum
|
# https://github.com/tmux-plugins/tmux-continuum
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
|
|
||||||
@@ -143,14 +127,9 @@ run-shell "$HOME/.dotfiles/config/tmux/theme-activate.sh"
|
|||||||
|
|
||||||
# ── Sourcing the plugins ──────────────────────────────────────────────
|
# ── Sourcing the plugins ──────────────────────────────────────────────
|
||||||
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-sensible/sensible.tmux"
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-window-name/tmux_window_name.tmux"
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-mode-indicator/mode_indicator.tmux"
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-suspend/suspend.tmux"
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-sessionist/sessionist.tmux"
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-yank/yank.tmux"
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-current-pane-hostname/current_pane_hostname.tmux"
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-fzf-url/fzf-url.tmux"
|
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-resurrect/resurrect.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-resurrect/resurrect.tmux"
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-continuum/continuum.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/tmux-continuum/continuum.tmux"
|
||||||
run-shell "$HOME/.dotfiles/config/tmux/plugins/catppuccin/catppuccin.tmux"
|
run-shell "$HOME/.dotfiles/config/tmux/plugins/catppuccin/catppuccin.tmux"
|
||||||
|
|||||||
@@ -1,181 +0,0 @@
|
|||||||
---
|
|
||||||
wtf:
|
|
||||||
colors:
|
|
||||||
background: black
|
|
||||||
border:
|
|
||||||
focusable: darkslateblue
|
|
||||||
focused: orange
|
|
||||||
normal: gray
|
|
||||||
checked: yellow
|
|
||||||
highlight:
|
|
||||||
fore: black
|
|
||||||
back: gray
|
|
||||||
rows:
|
|
||||||
even: yellow
|
|
||||||
odd: white
|
|
||||||
grid:
|
|
||||||
# How _wide_ the columns are, in terminal characters. In this case we have
|
|
||||||
# four columns, each of which are 35 characters wide.
|
|
||||||
columns: [35, 35, 30, 20]
|
|
||||||
# How _high_ the rows are, in terminal lines. In this case we have four rows
|
|
||||||
# that support ten line of text and one of four.
|
|
||||||
rows: [10, 10, 10, 20, 10, 4]
|
|
||||||
refreshInterval: 1
|
|
||||||
openFileUtil: 'open'
|
|
||||||
mods:
|
|
||||||
# You can have multiple widgets of the same type.
|
|
||||||
# The "key" is the name of the widget and the type is the actual
|
|
||||||
# widget you want to implement.
|
|
||||||
europe_time:
|
|
||||||
title: 'Europe'
|
|
||||||
type: clocks
|
|
||||||
colors:
|
|
||||||
rows:
|
|
||||||
even: 'lightblue'
|
|
||||||
odd: 'white'
|
|
||||||
enabled: true
|
|
||||||
locations:
|
|
||||||
GMT: 'Etc/GMT'
|
|
||||||
Amsterdam: 'Europe/Amsterdam'
|
|
||||||
Berlin: 'Europe/Berlin'
|
|
||||||
Barcelona: 'Europe/Madrid'
|
|
||||||
Copenhagen: 'Europe/Copenhagen'
|
|
||||||
London: 'Europe/London'
|
|
||||||
Rome: 'Europe/Rome'
|
|
||||||
Stockholm: 'Europe/Stockholm'
|
|
||||||
position:
|
|
||||||
top: 0
|
|
||||||
left: 0
|
|
||||||
height: 1
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 15
|
|
||||||
sort: 'alphabetical'
|
|
||||||
americas_time:
|
|
||||||
title: 'Americas'
|
|
||||||
type: clocks
|
|
||||||
colors:
|
|
||||||
rows:
|
|
||||||
even: 'lightblue'
|
|
||||||
odd: 'white'
|
|
||||||
enabled: true
|
|
||||||
locations:
|
|
||||||
UTC: 'Etc/UTC'
|
|
||||||
Vancouver: 'America/Vancouver'
|
|
||||||
New_York: 'America/New_York'
|
|
||||||
Sao_Paulo: 'America/Sao_Paulo'
|
|
||||||
Denver: 'America/Denver'
|
|
||||||
Iqaluit: 'America/Iqaluit'
|
|
||||||
Bahamas: 'America/Nassau'
|
|
||||||
Chicago: 'America/Chicago'
|
|
||||||
position:
|
|
||||||
top: 0
|
|
||||||
left: 1
|
|
||||||
height: 1
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 15
|
|
||||||
sort: 'alphabetical'
|
|
||||||
battery:
|
|
||||||
type: power
|
|
||||||
title: '⚡️'
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 1
|
|
||||||
left: 2
|
|
||||||
height: 1
|
|
||||||
width: 2
|
|
||||||
refreshInterval: 15
|
|
||||||
todolist:
|
|
||||||
type: todo
|
|
||||||
checkedIcon: 'X'
|
|
||||||
colors:
|
|
||||||
checked: gray
|
|
||||||
highlight:
|
|
||||||
fore: 'black'
|
|
||||||
back: 'orange'
|
|
||||||
enabled: true
|
|
||||||
filename: 'todo.yml'
|
|
||||||
position:
|
|
||||||
top: 1
|
|
||||||
left: 0
|
|
||||||
height: 2
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 3600
|
|
||||||
ip:
|
|
||||||
type: ipinfo
|
|
||||||
title: 'My IP'
|
|
||||||
colors:
|
|
||||||
name: 'lightblue'
|
|
||||||
value: 'white'
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 0
|
|
||||||
left: 2
|
|
||||||
height: 1
|
|
||||||
width: 2
|
|
||||||
refreshInterval: 150
|
|
||||||
security_info:
|
|
||||||
type: security
|
|
||||||
title: 'Staying safe'
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 1
|
|
||||||
left: 1
|
|
||||||
height: 1
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 3600
|
|
||||||
readme:
|
|
||||||
type: textfile
|
|
||||||
enabled: true
|
|
||||||
filePaths:
|
|
||||||
- '~/.config/wtf/config.yml'
|
|
||||||
format: true
|
|
||||||
formatStyle: 'monokai'
|
|
||||||
position:
|
|
||||||
top: 3
|
|
||||||
left: 0
|
|
||||||
height: 1
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 15
|
|
||||||
news:
|
|
||||||
type: hackernews
|
|
||||||
title: 'HackerNews'
|
|
||||||
enabled: true
|
|
||||||
numberOfStories: 10
|
|
||||||
position:
|
|
||||||
top: 3
|
|
||||||
left: 1
|
|
||||||
height: 1
|
|
||||||
width: 3
|
|
||||||
storyType: top
|
|
||||||
refreshInterval: 900
|
|
||||||
resources:
|
|
||||||
type: resourceusage
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 4
|
|
||||||
left: 0
|
|
||||||
height: 2
|
|
||||||
width: 1
|
|
||||||
refreshInterval: 1
|
|
||||||
uptime:
|
|
||||||
type: cmdrunner
|
|
||||||
args: []
|
|
||||||
cmd: 'uptime'
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 5
|
|
||||||
left: 1
|
|
||||||
height: 1
|
|
||||||
width: 3
|
|
||||||
refreshInterval: 30
|
|
||||||
disks:
|
|
||||||
type: cmdrunner
|
|
||||||
cmd: 'df'
|
|
||||||
args: ['-h']
|
|
||||||
enabled: true
|
|
||||||
position:
|
|
||||||
top: 4
|
|
||||||
left: 1
|
|
||||||
height: 1
|
|
||||||
width: 3
|
|
||||||
refreshInterval: 3600
|
|
||||||
@@ -20,7 +20,6 @@ yabai -m config \
|
|||||||
window_shadow float
|
window_shadow float
|
||||||
|
|
||||||
# apps to not manage (ignore)
|
# apps to not manage (ignore)
|
||||||
# TODO: add apps from aerospace config to here
|
|
||||||
# list active apps:
|
# list active apps:
|
||||||
# > yabai -m query --windows | jq .[].app | sort | uniq
|
# > yabai -m query --windows | jq .[].app | sort | uniq
|
||||||
yabai -m rule --add app="1Password" manage=off
|
yabai -m rule --add app="1Password" manage=off
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
formatter:
|
|
||||||
type: basic
|
|
||||||
indent: 2
|
|
||||||
retain_line_breaks: false
|
|
||||||
disallow_anchors: false
|
|
||||||
max_line_length: 0
|
|
||||||
scan_folded_as_literal: false
|
|
||||||
indentless_arrays: false
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
---
|
|
||||||
extends: default
|
|
||||||
|
|
||||||
ignore-from-file: [.gitignore, .yamlignore]
|
|
||||||
|
|
||||||
rules:
|
|
||||||
braces:
|
|
||||||
level: warning
|
|
||||||
max-spaces-inside: 1
|
|
||||||
brackets:
|
|
||||||
level: warning
|
|
||||||
max-spaces-inside: 1
|
|
||||||
colons:
|
|
||||||
level: warning
|
|
||||||
commas:
|
|
||||||
level: warning
|
|
||||||
comments: disable
|
|
||||||
comments-indentation: disable
|
|
||||||
document-start: disable
|
|
||||||
empty-lines:
|
|
||||||
level: warning
|
|
||||||
hyphens:
|
|
||||||
level: warning
|
|
||||||
indentation:
|
|
||||||
level: warning
|
|
||||||
indent-sequences: consistent
|
|
||||||
line-length:
|
|
||||||
level: warning
|
|
||||||
allow-non-breakable-inline-mappings: true
|
|
||||||
max: 120
|
|
||||||
truthy: disable
|
|
||||||
@@ -37,7 +37,6 @@ zdharma-continuum/fast-syntax-highlighting
|
|||||||
|
|
||||||
# Add some plugins that are not in OMZ
|
# Add some plugins that are not in OMZ
|
||||||
jreese/zsh-titles
|
jreese/zsh-titles
|
||||||
yuki-ycino/tms
|
|
||||||
|
|
||||||
# This needs to be last bundle
|
# This needs to be last bundle
|
||||||
# zsh-users/zsh-syntax-highlighting
|
# zsh-users/zsh-syntax-highlighting
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ _dfm()
|
|||||||
|
|
||||||
sections=(
|
sections=(
|
||||||
'install:Installation commands'
|
'install:Installation commands'
|
||||||
'asdf:ASDF version manager commands'
|
|
||||||
'brew:Homebrew package manager commands'
|
'brew:Homebrew package manager commands'
|
||||||
'check:System check commands'
|
'check:System check commands'
|
||||||
'dotfiles:Dotfiles management commands'
|
'dotfiles:Dotfiles management commands'
|
||||||
@@ -69,24 +68,6 @@ _dfm()
|
|||||||
_describe 'install commands' install_cmds
|
_describe 'install commands' install_cmds
|
||||||
;;
|
;;
|
||||||
|
|
||||||
asdf)
|
|
||||||
local -a asdf_cmds
|
|
||||||
asdf_cmds=(
|
|
||||||
'current:Show current versions'
|
|
||||||
'global:Show global versions'
|
|
||||||
'installed:Show installed versions'
|
|
||||||
'plugins-update:Update all plugins'
|
|
||||||
'plugins-install:Install plugins from configuration'
|
|
||||||
'plugins-remove:Remove installed plugins'
|
|
||||||
'reset:Reset plugins'
|
|
||||||
'fix-tool-versions:Remove uninstalled plugins from .tool-versions'
|
|
||||||
'versions:Show versions'
|
|
||||||
'where:Show where'
|
|
||||||
'which:Show which'
|
|
||||||
)
|
|
||||||
_describe 'asdf commands' asdf_cmds
|
|
||||||
;;
|
|
||||||
|
|
||||||
brew)
|
brew)
|
||||||
local -a brew_cmds
|
local -a brew_cmds
|
||||||
brew_cmds=(
|
brew_cmds=(
|
||||||
|
|||||||
@@ -1,66 +0,0 @@
|
|||||||
# aerospace keybindings
|
|
||||||
|
|
||||||
## main
|
|
||||||
|
|
||||||
| Key | Command(s) and actions |
|
|
||||||
| -------------- | -------------------------------------------- |
|
|
||||||
| alt-a | mode apps |
|
|
||||||
| alt-h | focus left |
|
|
||||||
| alt-j | focus down |
|
|
||||||
| alt-k | focus up |
|
|
||||||
| alt-l | focus right |
|
|
||||||
| alt-m | mode move |
|
|
||||||
| alt-s | mode service |
|
|
||||||
| alt-shift-1 | workspace 1 |
|
|
||||||
| alt-shift-2 | workspace 2 |
|
|
||||||
| alt-shift-tab | workspace-back-and-forth |
|
|
||||||
| ctrl-shift-1 | move-node-to-workspace 1 |
|
|
||||||
| ctrl-shift-2 | move-node-to-workspace 2 |
|
|
||||||
| ctrl-shift-tab | move-workspace-to-monitor --wrap-around prev |
|
|
||||||
|
|
||||||
## apps
|
|
||||||
|
|
||||||
| Key | Command(s) and actions |
|
|
||||||
| --- | ------------------------------------------------------------------ |
|
|
||||||
| b | exec-and-forget open -a /Applications/Brave Browser.app; mode main |
|
|
||||||
| c | exec-and-forget open -a /Applications/Ferdium.app; mode main |
|
|
||||||
| esc | reload-config; mode main |
|
|
||||||
| g | exec-and-forget open -a /Applications/Ghostty.app; mode main |
|
|
||||||
| o | exec-and-forget open -a /Applications/Obsidian.app; mode main |
|
|
||||||
| s | exec-and-forget open -a /Applications/Slack.app; mode main |
|
|
||||||
| t | exec-and-forget open -a /Applications/TIDAL.app; mode main |
|
|
||||||
| w | exec-and-forget open -a /Applications/WezTerm.app; mode main |
|
|
||||||
|
|
||||||
## move
|
|
||||||
|
|
||||||
| Key | Command(s) and actions |
|
|
||||||
| ----------- | ----------------------------------------------- |
|
|
||||||
| 1 | move-node-to-workspace 1 --focus-follows-window |
|
|
||||||
| 2 | move-node-to-workspace 2 --focus-follows-window |
|
|
||||||
| ctrl-h | resize smart -70 |
|
|
||||||
| ctrl-l | resize smart +70 |
|
|
||||||
| esc | reload-config; mode main |
|
|
||||||
| h | move left |
|
|
||||||
| j | move down |
|
|
||||||
| k | move up |
|
|
||||||
| l | move right |
|
|
||||||
| r | flatten-workspace-tree; mode main |
|
|
||||||
| shift-h | join-with left |
|
|
||||||
| shift-j | join-with down |
|
|
||||||
| shift-k | join-with up |
|
|
||||||
| shift-l | join-with right |
|
|
||||||
| shift-left | resize smart +70 |
|
|
||||||
| shift-right | resize smart -70 |
|
|
||||||
|
|
||||||
## service
|
|
||||||
|
|
||||||
| Key | Command(s) and actions |
|
|
||||||
| --------- | ---------------------------------------- |
|
|
||||||
| backspace | close-all-windows-but-current; mode main |
|
|
||||||
| esc | reload-config; mode main |
|
|
||||||
| f | layout floating tiling; mode main |
|
|
||||||
| r | flatten-workspace-tree; mode main |
|
|
||||||
|
|
||||||
File generated: 2025-01-15 13:32:41
|
|
||||||
|
|
||||||
Config file: [config/aerospace/aerospace.toml](./../config/aerospace/aerospace.toml)
|
|
||||||
@@ -299,7 +299,6 @@ section_helpers()
|
|||||||
"colors:Show colors"
|
"colors:Show colors"
|
||||||
"env:Show environment variables"
|
"env:Show environment variables"
|
||||||
"functions:Show functions"
|
"functions:Show functions"
|
||||||
"aerospace:Show aerospace keybindings"
|
|
||||||
"nvim:Show nvim keybindings"
|
"nvim:Show nvim keybindings"
|
||||||
'path:Show $PATH dir by dir'
|
'path:Show $PATH dir by dir'
|
||||||
"tmux:Show tmux keybindings"
|
"tmux:Show tmux keybindings"
|
||||||
@@ -361,7 +360,6 @@ section_helpers()
|
|||||||
|
|
||||||
"env") env | sort ;;
|
"env") env | sort ;;
|
||||||
"functions") declare -F ;;
|
"functions") declare -F ;;
|
||||||
"aerospace") cat "$DOTFILES/docs/aerospace-keybindings.md" ;;
|
|
||||||
"nvim") cat "$DOTFILES/docs/nvim-keybindings.md" ;;
|
"nvim") cat "$DOTFILES/docs/nvim-keybindings.md" ;;
|
||||||
"tmux") cat "$DOTFILES/docs/tmux-keybindings.md" ;;
|
"tmux") cat "$DOTFILES/docs/tmux-keybindings.md" ;;
|
||||||
"wezterm") cat "$DOTFILES/docs/wezterm-keybindings.md" ;;
|
"wezterm") cat "$DOTFILES/docs/wezterm-keybindings.md" ;;
|
||||||
@@ -438,7 +436,6 @@ section_docs()
|
|||||||
|
|
||||||
MENU=(
|
MENU=(
|
||||||
"all:Update all keybindings documentations"
|
"all:Update all keybindings documentations"
|
||||||
"aerospace:Update aerospace keybindings documentation"
|
|
||||||
"tmux:Update tmux keybindings documentation"
|
"tmux:Update tmux keybindings documentation"
|
||||||
"nvim:Update nvim keybindings documentation"
|
"nvim:Update nvim keybindings documentation"
|
||||||
"wezterm:Update wezterm keybindings documentation"
|
"wezterm:Update wezterm keybindings documentation"
|
||||||
@@ -446,12 +443,10 @@ section_docs()
|
|||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
all)
|
all)
|
||||||
$0 docs aerospace
|
|
||||||
$0 docs tmux
|
$0 docs tmux
|
||||||
$0 docs nvim
|
$0 docs nvim
|
||||||
$0 docs wezterm
|
$0 docs wezterm
|
||||||
;;
|
;;
|
||||||
aerospace) bash "$DOTFILES/scripts/create-aerospace-keymaps.php" ;;
|
|
||||||
tmux) bash "$DOTFILES/local/bin/x-dfm-docs-xterm-keybindings" ;;
|
tmux) bash "$DOTFILES/local/bin/x-dfm-docs-xterm-keybindings" ;;
|
||||||
nvim) bash "$DOTFILES/scripts/create-nvim-keymaps.sh" ;;
|
nvim) bash "$DOTFILES/scripts/create-nvim-keymaps.sh" ;;
|
||||||
wezterm) bash "$DOTFILES/scripts/create-wezterm-keymaps.sh" ;;
|
wezterm) bash "$DOTFILES/scripts/create-wezterm-keymaps.sh" ;;
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# create-aerospace-keymaps
|
|
||||||
|
|
||||||
Generates `docs/aerospace-keybindings.md` using `aerospace config --json`.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scripts/create-aerospace-keymaps.php
|
|
||||||
```
|
|
||||||
|
|
||||||
Requires the `aerospace` CLI tool to be installed.
|
|
||||||
@@ -1,67 +0,0 @@
|
|||||||
#!/usr/bin/env php
|
|
||||||
<?php
|
|
||||||
// @description Create file containing key mappings for aerospace
|
|
||||||
// Usage: ./create-aerospace-keymaps.sh
|
|
||||||
// vim: ft=php ts=4 sw=4 sts=4 sr et
|
|
||||||
|
|
||||||
$dotfiles_env = getenv("DOTFILES") ?? '~/.dotfiles';
|
|
||||||
|
|
||||||
$dest = "$dotfiles_env/docs/aerospace-keybindings.md";
|
|
||||||
|
|
||||||
exec("aerospace config --get mode --json", $output);
|
|
||||||
$output = implode(' ', $output);
|
|
||||||
$config = json_decode($output, true);
|
|
||||||
|
|
||||||
$main = $config['main'];
|
|
||||||
unset($config['main']);
|
|
||||||
|
|
||||||
function process_section(string $title, array $array): string
|
|
||||||
{
|
|
||||||
$bindings = $array['binding'] ?? [];
|
|
||||||
ksort($bindings);
|
|
||||||
|
|
||||||
$output = [];
|
|
||||||
$output[] = sprintf("\n## %s\n", $title);
|
|
||||||
|
|
||||||
$k_len = max(array_map('strlen', array_keys($bindings)));
|
|
||||||
$v_len = max(array_map('strlen', array_values($bindings)));
|
|
||||||
|
|
||||||
$output[] = sprintf(
|
|
||||||
"| %s | %s |",
|
|
||||||
str_pad('Key', $k_len + 1),
|
|
||||||
str_pad('Command(s) and actions', $v_len + 1)
|
|
||||||
);
|
|
||||||
$output[] = sprintf(
|
|
||||||
"|%s|%s|",
|
|
||||||
str_repeat('-', $k_len + 3),
|
|
||||||
str_repeat('-', $v_len + 3)
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($bindings as $key => $value) {
|
|
||||||
$k = str_pad($key, $k_len + 1);
|
|
||||||
$v = str_pad($value, $v_len + 1);
|
|
||||||
$output[] = sprintf("| %s | %s |", $k, $v);
|
|
||||||
}
|
|
||||||
|
|
||||||
return implode("\n", $output);
|
|
||||||
}
|
|
||||||
|
|
||||||
$contents = [];
|
|
||||||
$contents[] = "# aerospace keybindings";
|
|
||||||
|
|
||||||
$contents[] = process_section("main", $main);
|
|
||||||
|
|
||||||
ksort($config);
|
|
||||||
|
|
||||||
foreach ($config as $mode => $bindings) {
|
|
||||||
$contents[] = process_section($mode, $bindings);
|
|
||||||
}
|
|
||||||
|
|
||||||
$contents[] = "\nFile generated: " . date("Y-m-d H:i:s") . "\n";
|
|
||||||
|
|
||||||
$config_file_name = 'config/aerospace/aerospace.toml';
|
|
||||||
$config_file_source = './../config/aerospace/aerospace.toml';
|
|
||||||
$contents[] = "Config file: [$config_file_name]($config_file_source)\n";
|
|
||||||
|
|
||||||
$file = implode("\n", $contents);
|
|
||||||
file_put_contents($dest, $file);
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# install-cargo-packages
|
# install-cargo-packages
|
||||||
|
|
||||||
Install Rust packages listed in `config/asdf/cargo-packages`.
|
Install Rust packages defined in the script.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -8,5 +8,14 @@ Install Rust packages listed in `config/asdf/cargo-packages`.
|
|||||||
scripts/install-cargo-packages.sh
|
scripts/install-cargo-packages.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The script installs each package with `cargo install` and runs
|
## What it does
|
||||||
`cargo-install-update` when available to update existing packages.
|
|
||||||
|
1. If `cargo-install-update` is available, updates all existing packages first
|
||||||
|
and tracks which packages are already installed.
|
||||||
|
2. Installs each package from the inline list using `cargo install`,
|
||||||
|
skipping any already handled by the update step.
|
||||||
|
Builds run in parallel using available CPU cores (minus two).
|
||||||
|
3. Runs package-specific post-install steps.
|
||||||
|
4. Cleans the cargo cache with `cargo cache --autoclean`.
|
||||||
|
|
||||||
|
To add or remove packages, edit the `packages` array in `scripts/install-cargo-packages.sh`.
|
||||||
|
|||||||
@@ -3,27 +3,37 @@
|
|||||||
|
|
||||||
msgr run "Starting to install rust/cargo packages"
|
msgr run "Starting to install rust/cargo packages"
|
||||||
|
|
||||||
|
# Track packages already managed by cargo install-update
|
||||||
|
declare -A installed_packages
|
||||||
|
|
||||||
# If we have cargo install-update, use it first
|
# If we have cargo install-update, use it first
|
||||||
if command -v cargo-install-update &> /dev/null; then
|
if command -v cargo-install-update &> /dev/null; then
|
||||||
msgr run "Updating cargo packages with cargo install-update"
|
msgr run "Updating cargo packages with cargo install-update"
|
||||||
cargo install-update -a
|
# Show output in real-time (via stderr) while capturing it for parsing
|
||||||
|
update_output=$(cargo install-update -a 2>&1 | tee /dev/stderr)
|
||||||
msgr run_done "Done with cargo install-update"
|
msgr run_done "Done with cargo install-update"
|
||||||
|
|
||||||
|
# Parse installed package names from the update output
|
||||||
|
while IFS= read -r pkg_name; do
|
||||||
|
[[ -n "$pkg_name" ]] && installed_packages["$pkg_name"]=1
|
||||||
|
done < <(echo "$update_output" | awk '/v[0-9]+\.[0-9]+/ { print $1 }')
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ -z "$ASDF_CRATE_DEFAULT_PACKAGES_FILE" ]] \
|
# Cargo packages to install
|
||||||
&& ASDF_CRATE_DEFAULT_PACKAGES_FILE="$DOTFILES/config/asdf/cargo-packages"
|
packages=(
|
||||||
|
cargo-update # A cargo subcommand for checking and applying updates to installed executables
|
||||||
# Packages are defined in $DOTFILES/config/asdf/cargo-packages, one per line
|
cargo-cache # Cargo cache management utility
|
||||||
# Skip comments and empty lines
|
tree-sitter-cli # An incremental parsing system for programming tools
|
||||||
packages=()
|
bkt # A subprocess caching utility
|
||||||
while IFS= read -r line; do
|
difftastic # A structural diff that understands syntax
|
||||||
# Skip comments
|
fd-find # A simple, fast and user-friendly alternative to 'find'
|
||||||
if [[ ${line:0:1} == "#" ]]; then continue; fi
|
ripgrep # Recursively searches directories for a regex pattern while respecting your gitignore
|
||||||
if [[ ${line:0:1} == "/" ]]; then continue; fi
|
bob-nvim # A version manager for neovim
|
||||||
# Skip empty lines
|
bottom # A cross-platform graphical process/system monitor
|
||||||
if [[ -z "$line" ]]; then continue; fi
|
eza # A modern alternative to ls
|
||||||
packages+=("$line")
|
tmux-sessionizer # A tool for opening git repositories as tmux sessions
|
||||||
done < "$ASDF_CRATE_DEFAULT_PACKAGES_FILE"
|
zoxide # A smarter cd command
|
||||||
|
)
|
||||||
|
|
||||||
# Number of jobs to run in parallel, this helps to keep the system responsive
|
# Number of jobs to run in parallel, this helps to keep the system responsive
|
||||||
BUILD_JOBS=$(nproc --ignore=2 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1)
|
BUILD_JOBS=$(nproc --ignore=2 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null || echo 1)
|
||||||
@@ -32,10 +42,11 @@ BUILD_JOBS=$(nproc --ignore=2 2> /dev/null || sysctl -n hw.ncpu 2> /dev/null ||
|
|||||||
install_packages()
|
install_packages()
|
||||||
{
|
{
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
# Trim spaces
|
# Skip packages already handled by cargo install-update
|
||||||
pkg=${pkg// /}
|
if [[ -n "${installed_packages[$pkg]+x}" ]]; then
|
||||||
# Skip comments
|
msgr ok "Skipping $pkg (already installed)"
|
||||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
msgr run "Installing cargo package $pkg"
|
msgr run "Installing cargo package $pkg"
|
||||||
cargo install --jobs "$BUILD_JOBS" "$pkg"
|
cargo install --jobs "$BUILD_JOBS" "$pkg"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# install-go-packages
|
# install-go-packages
|
||||||
|
|
||||||
Installs Go binaries defined in `config/go/packages`.
|
Install Go packages defined in the script.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -8,5 +8,11 @@ Installs Go binaries defined in `config/go/packages`.
|
|||||||
scripts/install-go-packages.sh
|
scripts/install-go-packages.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
The script uses `go install` for each package path listed in the configuration
|
## What it does
|
||||||
file.
|
|
||||||
|
1. Checks that `go` is available.
|
||||||
|
2. Installs each package from the inline list using `go install`.
|
||||||
|
3. Runs post-install steps (e.g. generating shell completions).
|
||||||
|
4. Clears the Go module and build caches.
|
||||||
|
|
||||||
|
To add or remove packages, edit the `packages` array in `scripts/install-go-packages.sh`.
|
||||||
|
|||||||
@@ -11,31 +11,25 @@ msgr run "Installing go packages"
|
|||||||
|
|
||||||
! x-have "go" && msgr err "go hasn't been installed yet." && exit 0
|
! x-have "go" && msgr err "go hasn't been installed yet." && exit 0
|
||||||
|
|
||||||
[[ -z "$ASDF_GOLANG_DEFAULT_PACKAGES_FILE" ]] \
|
# Go packages to install
|
||||||
&& ASDF_GOLANG_DEFAULT_PACKAGES_FILE="$DOTFILES/config/asdf/golang-packages"
|
packages=(
|
||||||
|
github.com/dotzero/git-profile@latest # Switch between git user profiles
|
||||||
# Packages are defined in $DOTFILES/config/asdf/golang-packages, one per line
|
github.com/google/yamlfmt/cmd/yamlfmt@latest # Format yaml files
|
||||||
# Skip comments and empty lines
|
github.com/cheat/cheat/cmd/cheat@latest # Interactive cheatsheets on the CLI
|
||||||
packages=()
|
github.com/charmbracelet/glow@latest # Render markdown on the CLI
|
||||||
if [[ -f "$ASDF_GOLANG_DEFAULT_PACKAGES_FILE" ]]; then
|
github.com/junegunn/fzf@latest # General-purpose fuzzy finder
|
||||||
while IFS= read -r line; do
|
github.com/charmbracelet/gum@latest # Glamorous shell scripts
|
||||||
# Skip comments
|
github.com/joshmedeski/sesh/v2@latest # Terminal session manager
|
||||||
if [[ ${line:0:1} == "#" ]]; then continue; fi
|
)
|
||||||
if [[ ${line:0:1} == "/" ]]; then continue; fi
|
|
||||||
# Skip empty lines
|
|
||||||
if [[ -z "$line" ]]; then continue; fi
|
|
||||||
packages+=("$line")
|
|
||||||
done < "$ASDF_GOLANG_DEFAULT_PACKAGES_FILE"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Function to install go packages
|
# Function to install go packages
|
||||||
install_packages()
|
install_packages()
|
||||||
{
|
{
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
# Trim spaces
|
# Strip inline comments and trim whitespace
|
||||||
pkg=${pkg// /}
|
pkg="${pkg%%#*}"
|
||||||
# Skip comments
|
pkg="${pkg// /}"
|
||||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
[[ -z "$pkg" ]] && continue
|
||||||
|
|
||||||
msgr nested "Installing go package: $pkg"
|
msgr nested "Installing go package: $pkg"
|
||||||
go install "$pkg"
|
go install "$pkg"
|
||||||
@@ -52,11 +46,6 @@ post_install()
|
|||||||
git-profile completion zsh > "$ZSH_CUSTOM_COMPLETION_PATH/_git-profile" \
|
git-profile completion zsh > "$ZSH_CUSTOM_COMPLETION_PATH/_git-profile" \
|
||||||
&& msgr run_done "Installed completions for git-profile"
|
&& msgr run_done "Installed completions for git-profile"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v antidot &> /dev/null; then
|
|
||||||
antidot update \
|
|
||||||
&& msgr run_done "Updated antidot database"
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Function to clear go cache
|
# Function to clear go cache
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# install-npm-packages
|
# install-npm-packages
|
||||||
|
|
||||||
Installs global npm packages listed in `config/npm/packages`.
|
Install npm packages defined in the script.
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
@@ -8,4 +8,11 @@ Installs global npm packages listed in `config/npm/packages`.
|
|||||||
scripts/install-npm-packages.sh
|
scripts/install-npm-packages.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
Uses `npm install -g` for each package in the configuration file.
|
## What it does
|
||||||
|
|
||||||
|
1. Checks that `npm` is available.
|
||||||
|
2. Installs each package from the inline list using `npm install -g`.
|
||||||
|
3. Upgrades all global packages.
|
||||||
|
4. Cleans the npm cache.
|
||||||
|
|
||||||
|
To add or remove packages, edit the `packages` array in `scripts/install-npm-packages.sh`.
|
||||||
|
|||||||
@@ -15,23 +15,20 @@ if ! command -v npm &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
packages=(
|
packages=(
|
||||||
# This is a tool to check if your files consider your .editorconfig rules.
|
editorconfig-checker # Check files against .editorconfig rules
|
||||||
"editorconfig-checker"
|
github-release-notes # Create release notes from tags and issues
|
||||||
# Node module to create a release or a changelog from
|
neovim # Neovim node client
|
||||||
# a tag and uses issues or commits to creating the release notes.
|
corepack # Node.js package manager version management
|
||||||
"github-release-notes"
|
|
||||||
"neovim"
|
|
||||||
"corepack"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Function to install npm packages
|
# Function to install npm packages
|
||||||
install_packages()
|
install_packages()
|
||||||
{
|
{
|
||||||
for pkg in "${packages[@]}"; do
|
for pkg in "${packages[@]}"; do
|
||||||
# Trim spaces
|
# Strip inline comments and trim whitespace
|
||||||
pkg=${pkg// /}
|
pkg="${pkg%%#*}"
|
||||||
# Skip comments
|
pkg="${pkg// /}"
|
||||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
[[ -z "$pkg" ]] && continue
|
||||||
|
|
||||||
if npm ls -g -p "$pkg" &> /dev/null; then
|
if npm ls -g -p "$pkg" &> /dev/null; then
|
||||||
msgr run_done "$pkg" "already installed"
|
msgr run_done "$pkg" "already installed"
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# install-pip-packages
|
|
||||||
|
|
||||||
Installs Python packages from `config/pip/packages` using `pip`.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
```bash
|
|
||||||
scripts/install-pip-packages.sh
|
|
||||||
```
|
|
||||||
|
|
||||||
The script uses `pip install --user` for each package entry.
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
# @description Install python/pip packages.
|
|
||||||
#
|
|
||||||
# shellcheck source=shared.sh
|
|
||||||
source "${DOTFILES}/config/shared.sh"
|
|
||||||
|
|
||||||
# Enable verbosity with VERBOSE=1
|
|
||||||
VERBOSE="${VERBOSE:-0}"
|
|
||||||
|
|
||||||
msgr run "Starting to install pip packages"
|
|
||||||
|
|
||||||
if ! command -v python3 &> /dev/null; then
|
|
||||||
msgr err "Could not find python3, something really weird is going on."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
msgr nested "Upgrading pip"
|
|
||||||
python3 -m pip install --user --upgrade pip
|
|
||||||
|
|
||||||
packages=(
|
|
||||||
"pipx"
|
|
||||||
"libtmux"
|
|
||||||
)
|
|
||||||
|
|
||||||
# Function to install pip packages
|
|
||||||
install_packages()
|
|
||||||
{
|
|
||||||
for pkg in "${packages[@]}"; do
|
|
||||||
# Trim spaces
|
|
||||||
pkg=${pkg// /}
|
|
||||||
# Skip comments
|
|
||||||
if [[ ${pkg:0:1} == "#" ]]; then continue; fi
|
|
||||||
|
|
||||||
msgr nested "Installing pip package: $pkg"
|
|
||||||
python3 -m pip install --user --upgrade "$pkg"
|
|
||||||
echo ""
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
install_packages
|
|
||||||
msgr run_done "Run pip package installations"
|
|
||||||
18
scripts/install-python-packages.md
Normal file
18
scripts/install-python-packages.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# install-python-packages
|
||||||
|
|
||||||
|
Install Python packages defined in the script using `uv`.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
```bash
|
||||||
|
scripts/install-python-packages.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
## What it does
|
||||||
|
|
||||||
|
1. Checks that `uv` is available; if missing, installs it via the official installer.
|
||||||
|
2. Installs each CLI tool from the inline `tools` array using `uv tool install --upgrade`.
|
||||||
|
3. Installs each library from the inline `libraries` array using `uv pip install --system --upgrade`.
|
||||||
|
4. Upgrades all uv-managed tools with `uv tool upgrade --all`.
|
||||||
|
|
||||||
|
To add or remove packages, edit the `tools` or `libraries` arrays in `scripts/install-python-packages.sh`.
|
||||||
77
scripts/install-python-packages.sh
Executable file
77
scripts/install-python-packages.sh
Executable file
@@ -0,0 +1,77 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# @description Install Python packages using uv.
|
||||||
|
#
|
||||||
|
# shellcheck source=shared.sh
|
||||||
|
source "$DOTFILES/config/shared.sh"
|
||||||
|
|
||||||
|
# Enable verbosity with VERBOSE=1
|
||||||
|
VERBOSE="${VERBOSE:-0}"
|
||||||
|
|
||||||
|
msgr run "Starting to install Python packages"
|
||||||
|
|
||||||
|
# Ensure uv is available
|
||||||
|
if ! command -v uv &> /dev/null; then
|
||||||
|
msgr nested "uv not found, installing via official installer"
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# CLI tools — installed isolated with `uv tool install`
|
||||||
|
tools=(
|
||||||
|
ansible # IT automation and configuration management
|
||||||
|
)
|
||||||
|
|
||||||
|
# Library packages — installed into system Python with `uv pip install --system`
|
||||||
|
libraries=(
|
||||||
|
libtmux # Python API for tmux
|
||||||
|
pynvim # Neovim Python client
|
||||||
|
)
|
||||||
|
|
||||||
|
# Function to install CLI tools via uv tool install
|
||||||
|
install_tools()
|
||||||
|
{
|
||||||
|
msgr run "Installing Python CLI tools"
|
||||||
|
for pkg in "${tools[@]}"; do
|
||||||
|
# Strip inline comments and trim whitespace
|
||||||
|
pkg="${pkg%%#*}"
|
||||||
|
pkg="${pkg// /}"
|
||||||
|
[[ -z "$pkg" ]] && continue
|
||||||
|
|
||||||
|
msgr nested "Installing tool: $pkg"
|
||||||
|
uv tool install --upgrade "$pkg"
|
||||||
|
echo ""
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to install library packages via uv pip install
|
||||||
|
install_libraries()
|
||||||
|
{
|
||||||
|
msgr run "Installing Python libraries"
|
||||||
|
for pkg in "${libraries[@]}"; do
|
||||||
|
# Strip inline comments and trim whitespace
|
||||||
|
pkg="${pkg%%#*}"
|
||||||
|
pkg="${pkg// /}"
|
||||||
|
[[ -z "$pkg" ]] && continue
|
||||||
|
|
||||||
|
msgr nested "Installing library: $pkg"
|
||||||
|
uv pip install --system --upgrade "$pkg"
|
||||||
|
echo ""
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
# Function to upgrade all uv-managed tools
|
||||||
|
upgrade_tools()
|
||||||
|
{
|
||||||
|
msgr run "Upgrading all uv-managed tools"
|
||||||
|
uv tool upgrade --all
|
||||||
|
}
|
||||||
|
|
||||||
|
main()
|
||||||
|
{
|
||||||
|
install_tools
|
||||||
|
install_libraries
|
||||||
|
upgrade_tools
|
||||||
|
msgr yay "Python package installations complete"
|
||||||
|
}
|
||||||
|
|
||||||
|
main "$@"
|
||||||
Reference in New Issue
Block a user