mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-05 13:40:18 -05:00
chore: cleaning up
This commit is contained in:
68
.config/tmux/tmux.conf
Normal file
68
.config/tmux/tmux.conf
Normal file
@@ -0,0 +1,68 @@
|
||||
# Allows colors to better match
|
||||
set-option -sa terminal-overrides ",xterm*:Tc"
|
||||
|
||||
# Mouseify mode
|
||||
set -g mouse on
|
||||
|
||||
# reload config
|
||||
bind R source-file ~/.config/tmux/tmux.conf
|
||||
|
||||
# Use ctrl-a as a prefix
|
||||
unbind C-b
|
||||
set -g prefix C-a
|
||||
bind C-a send-prefix
|
||||
|
||||
# pane resizing
|
||||
bind -r H resize-pane -L 2
|
||||
bind -r J resize-pane -D 2
|
||||
bind -r K resize-pane -U 2
|
||||
bind -r L resize-pane -R 2
|
||||
|
||||
# splits
|
||||
bind - split-window -v
|
||||
bind _ split-window -h
|
||||
bind | split-window -h
|
||||
|
||||
# window navigation
|
||||
unbind n
|
||||
unbind p
|
||||
bind -r C-h previous-window # select previous window
|
||||
bind -r C-l next-window # select next window
|
||||
|
||||
# Start windows and panes at 1, not 0
|
||||
set -g base-index 1
|
||||
set -g pane-base-index 1
|
||||
set-window-option -g pane-base-index 1
|
||||
set-option -g renumber-windows on
|
||||
|
||||
set -g @catppuccin_flavour 'mocha'
|
||||
set -g @catppuccin_status_modules_right "battery application session date_time"
|
||||
set -g @catppuccin_status_left_separator "█"
|
||||
set -g @catppuccin_status_right_separator "█"
|
||||
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'christoomey/vim-tmux-navigator'
|
||||
set -g @plugin 'catppuccin/tmux'
|
||||
set -g @plugin 'tmux-plugins/tmux-cpu'
|
||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||
set -g @plugin 'akohlbecker/aw-watcher-tmux'
|
||||
|
||||
set -g @plugin 'laktak/extrakto' # prefix + tab
|
||||
set -g @plugin 'sainnhe/tmux-fzf' # prefix + F
|
||||
set -g @plugin 'tmux-plugins/tmux-urlview' # prefix + u
|
||||
set -g @plugin 'tmux-plugins/tmux-yank' # prefix + y
|
||||
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
# set vi-mode
|
||||
set-window-option -g status-keys vi
|
||||
set-window-option -g mode-keys vi
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
|
||||
|
||||
# Use F12 for pane sync
|
||||
bind-key e set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
|
||||
|
||||
asdf-up() {
|
||||
plugin=$1
|
||||
cur_version=`asdf current ${plugin} | tr -s ' ' | cut -d ' ' -f 2`
|
||||
echo Updating plugin: $plugin version: $cur_version
|
||||
asdf uninstall ${plugin} ${cur_version} && asdf install ${plugin} ${cur_version}
|
||||
}
|
||||
|
||||
# Stuff for building erlang on Apple ARM
|
||||
if [ -d "/opt/homebrew/opt/openssl@1.1/lib" ]; then
|
||||
export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
|
||||
export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
|
||||
export KERL_CONFIGURE_OPTIONS="--disable-debug --disable-silent-rules --without-javac --enable-shared-zlib --enable-dynamic-ssl-lib --enable-threads --enable-kernel-poll --enable-wx --enable-webview --enable-darwin-64bit --enable-gettimeofday-as-os-system-time --with-ssl=$(brew --prefix openssl@1.1)" KERL_BUILD_DOCS="yes"
|
||||
fi
|
||||
39
.config/zsh/asdf.zsh##template.j2
Normal file
39
.config/zsh/asdf.zsh##template.j2
Normal file
@@ -0,0 +1,39 @@
|
||||
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
|
||||
export ASDF_GOLANG_MOD_VERSION_ENABLED=true
|
||||
export KERL_BUILD_DOCS="yes"
|
||||
export KERL_CONFIGURE_OPTIONS="--without-javac --without-wx --without-odbc --enable-threads --enable-kernel-poll --enable-webview --enable-gettimeofday-as-os-system-time"
|
||||
|
||||
asdf-up() {
|
||||
plugin=$1
|
||||
cur_version=`asdf current ${plugin} | tr -s ' ' | cut -d ' ' -f 2`
|
||||
echo Updating plugin: $plugin version: $cur_version
|
||||
asdf uninstall ${plugin} ${cur_version} && asdf install ${plugin} ${cur_version}
|
||||
}
|
||||
|
||||
{% if YADM_OS == "Darwin" -%}
|
||||
{% if YADM_ARCH == "arm64" -%}
|
||||
|
||||
export KERL_CONFIGURE_OPTIONS="$KERL_CONFIGURE_OPTIONS --enable-darwin-64bit"
|
||||
|
||||
{% endif -%}
|
||||
|
||||
# export CXXFLAGS="-ffat-lto-objects"
|
||||
export CFLAGS="-ffat-lto-objects"
|
||||
export LDFLAGS=""
|
||||
|
||||
if which brew > /dev/null; then
|
||||
blah=`brew --prefix openssl > /dev/null`
|
||||
if [ $? -eq 0 ]; then
|
||||
export CFLAGS="$CFLAGS -I$(brew --prefix openssl)/include"
|
||||
export LDFLAGS="$LDFLAGS -L$(brew --prefix openssl)/lib"
|
||||
fi
|
||||
fi
|
||||
|
||||
{% endif -%}
|
||||
|
||||
# Stuff for building erlang on Apple ARM
|
||||
# if [ -d "/opt/homebrew/opt/openssl@1.1/lib" ]; then
|
||||
# export LDFLAGS="-L/opt/homebrew/opt/openssl@1.1/lib"
|
||||
# export CPPFLAGS="-I/opt/homebrew/opt/openssl@1.1/include"
|
||||
# export KERL_CONFIGURE_OPTIONS="--disable-debug --disable-silent-rules --without-javac --enable-shared-zlib --enable-dynamic-ssl-lib --enable-threads --enable-kernel-poll --enable-wx --enable-webview --enable-darwin-64bit --enable-gettimeofday-as-os-system-time --with-ssl=$(brew --prefix openssl@1.1)" KERL_BUILD_DOCS="yes"
|
||||
# fi
|
||||
Reference in New Issue
Block a user