updated some configs
This commit is contained in:
25
.tmux.conf
25
.tmux.conf
@@ -1,16 +1,21 @@
|
||||
unbind -a
|
||||
#unbind -a
|
||||
|
||||
set -g default-terminal tmux
|
||||
set-option -sa terminal-features ',xterm:RGB'
|
||||
|
||||
set-window-option -g mode-keys vi
|
||||
|
||||
# bind to C-a
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
# bind to C-b
|
||||
set-option -g prefix C-b
|
||||
bind-key C-b send-prefix
|
||||
# commands
|
||||
bind-key -T prefix : command
|
||||
# sessions
|
||||
# this will be set with sessionx further down
|
||||
#bind-key -T prefix s list-sessions
|
||||
# switch panels
|
||||
# switch panes using Alt-arrow without prefix
|
||||
#bind-key -T prefix C-a switch-client -T prefix_ca
|
||||
#bind-key -T prefix C-b switch-client -T prefix_ca
|
||||
bind-key -T prefix c new-window
|
||||
bind-key -T prefix h previous-window
|
||||
bind-key -T prefix l next-window
|
||||
@@ -64,4 +69,12 @@ setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244
|
||||
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||
|
||||
# messages
|
||||
set -g message-style 'fg=colour232 bg=colour16 bold'
|
||||
set -g message-style 'fg=colour6 bg=colour16 bold'
|
||||
|
||||
# list of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-sensible'
|
||||
set -g @plugin 'omerxx/tmux-sessionx'
|
||||
set -g @sessionx-bind 'o'
|
||||
|
||||
run '~/.tmux/plugins/tpm/tpm'
|
||||
|
||||
35
.zshrc
35
.zshrc
@@ -102,28 +102,27 @@ source $ZSH/oh-my-zsh.sh
|
||||
|
||||
set -o vi
|
||||
|
||||
source $HOME/venv/default/bin/activate
|
||||
PATH=$PATH:/usr/local/go/bin
|
||||
PATH=$PATH:$HOME/go/bin
|
||||
#source $HOME/venv/default/bin/activate
|
||||
source $HOME/anaconda3/bin/activate
|
||||
conda config --set changeps1 False
|
||||
PATH="$PATH:/usr/local/go/bin"
|
||||
PATH="$PATH:$HOME/go/bin"
|
||||
PATH="$PATH:/usr/local/zig-linux-x86_64-0.13.0"
|
||||
export PATH
|
||||
|
||||
source "$HOME/.fzf.zsh"
|
||||
TRAPWINCH() {
|
||||
zle && { zle reset-prompt; zle -R }
|
||||
}
|
||||
|
||||
function Zml2ZV9vbmVfb25lX2Nz {
|
||||
dirfile="$HOME/directories.txt"
|
||||
#if ! [ -f $dirfile ] || test $(find $dirfile -mmin +720)
|
||||
if ! [ -f $dirfile ]
|
||||
then
|
||||
echo "Indexing directories..."
|
||||
find $HOME -type d -not -path '*/.*' 1> $dirfile 2>/dev/null
|
||||
fi
|
||||
cd "$(cat $dirfile | fzf)"
|
||||
zle reset-prompt
|
||||
}
|
||||
zle -N 'Zml2ZV9vbmVfb25lX2Nz'
|
||||
bindkey -M vicmd '\\f' 'Zml2ZV9vbmVfb25lX2Nz'
|
||||
alias '\f'='Zml2ZV9vbmVfb25lX2Nz'
|
||||
zle -N fzf-cd-widget
|
||||
bindkey -M vicmd '\\f' fzf-cd-widget
|
||||
zle -N fzf-history-widget
|
||||
bindkey -M vicmd '/' fzf-history-widget
|
||||
|
||||
TRAPWINCH
|
||||
export MODULAR_HOME="/home/cowley/.modular"
|
||||
export PATH="/home/cowley/.modular/pkg/packages.modular.com_mojo/bin:$PATH"
|
||||
|
||||
LS_COLORS=$LS_COLORS:'ow=37;42:'
|
||||
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
7
choose_random_ambience.sh
Normal file
7
choose_random_ambience.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
choices=$(ls *ambience*.mp3)
|
||||
shuffled=$(printf "%s\n" "${choices[@]}" | shuf -n1)
|
||||
echo $shuffled
|
||||
totem ${shuffled[ $RANDOM % ${#shuffled[@]} ]}
|
||||
4
init.lua
4
init.lua
@@ -251,6 +251,8 @@ require("lspconfig").gopls.setup{}
|
||||
|
||||
require("lspconfig").ccls.setup{}
|
||||
|
||||
require("lspconfig").rust_analyzer.setup{}
|
||||
|
||||
|
||||
-- Global mappings.
|
||||
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
|
||||
@@ -334,6 +336,8 @@ vim.keymap.set("n", "gtH", ":execute 'silent! tabmove ' . (tabpagenr()-2)<cr>")
|
||||
vim.keymap.set("n", "gtn", ":tabedit<cr>")
|
||||
-- previous tab
|
||||
vim.keymap.set("n", "gb", ":bprevious<cr>")
|
||||
-- previous tab
|
||||
vim.keymap.set("n", "gb", ":bprevious<cr>")
|
||||
vim.keymap.set("n", "gn", ":bnext<cr>")
|
||||
-- switch windows using g<movement> rather than <C-W><movement>
|
||||
vim.keymap.set("n", "gwh", "<C-W>h")
|
||||
|
||||
Reference in New Issue
Block a user