Compare commits

11 Commits

Author SHA1 Message Date
Fabian Ising
51249a271d [GIT] Auto rebase/stash 2025-10-27 09:55:52 +01:00
Fabian Ising
9c1360d9d5 [NVIM] Rework folding 2025-10-27 09:55:31 +01:00
Fabian Ising
c90a8a783a Fix update script 2025-10-27 09:55:02 +01:00
Fabian Ising
ff125f4c7a [ZSH] Fix virt-manager 2025-10-27 09:53:45 +01:00
Fabian Ising
cda37c3415 [tmux] Fix clipboard 2025-08-26 11:16:44 +02:00
Fabian Ising
6fd62c340d [NVIM] Run YCM install script on update 2025-08-06 11:04:27 +02:00
Fabian Ising
4718c8cccc [ZSH] Add OSC52 var 2025-08-06 10:51:09 +02:00
Fabian Ising
022895d1b2 [TERM] Add xshift for curved monitor visibility 2025-08-05 14:53:27 +02:00
murgi
fb8dc68cfd [ZSH] Fix autopull 2025-08-05 14:36:11 +02:00
Fabian Ising
a13204c4b5 [ZSH] Add autopull for repo 2025-08-05 12:33:05 +02:00
Fabian Ising
e4400b13a8 [ZSH] Add completion rehash 2025-08-04 11:47:52 +02:00
8 changed files with 69 additions and 16 deletions

View File

@@ -54,5 +54,5 @@ dynamic_title = true
option_as_alt = "None" option_as_alt = "None"
[window.padding] [window.padding]
x = 0 x = 2
y = 0 y = 0

0
compile_ycm.sh Normal file → Executable file
View File

View File

@@ -33,3 +33,7 @@ email = github@murgi.de
smudge = git-lfs smudge -- %f smudge = git-lfs smudge -- %f
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[rebase]
autoStash = true
[pull]
rebase = true

View File

@@ -65,7 +65,7 @@ function! BuildYCM(info)
" - name: name of the plugin " - name: name of the plugin
" - status: 'installed', 'updated', or 'unchanged' " - status: 'installed', 'updated', or 'unchanged'
" - force: set on PlugInstall! or PlugUpdate! " - force: set on PlugInstall! or PlugUpdate!
if a:info.status == 'installed' || a:info.force if a:info.status == 'installed' || a:info.status == 'updated' || a:info.force
execute '!' . g:python_interpreter . ' ./install.py --all' execute '!' . g:python_interpreter . ' ./install.py --all'
endif endif
endfunction endfunction
@@ -244,7 +244,33 @@ nmap <Leader>t :call TextWrapToggle()<CR>
"Copying "Copying
if !exists('g:vscode') if !exists('g:vscode')
lua << EOF lua << EOF
vim.g.clipboard = 'osc52' vim.g.clipboard = {
name = 'OSC 52',
copy = {
['+'] = require('vim.ui.clipboard.osc52').copy('+'),
['*'] = require('vim.ui.clipboard.osc52').copy('*'),
},
paste = {
['+'] = require('vim.ui.clipboard.osc52').paste('+'),
['*'] = require('vim.ui.clipboard.osc52').paste('*'),
},
}
if vim.env.TMUX ~= nil then
local copy = {'tmux', 'load-buffer', '-w', '-'}
local paste = {'bash', '-c', 'tmux refresh-client -l && sleep 0.05 && tmux save-buffer -'}
vim.g.clipboard = {
name = 'tmux',
copy = {
['+'] = copy,
['*'] = copy,
},
paste = {
['+'] = paste,
['*'] = paste,
},
cache_enabled = 0,
}
end
EOF EOF
endif endif
set clipboard=unnamedplus,unnamed " Copy/Paste set clipboard=unnamedplus,unnamed " Copy/Paste
@@ -303,16 +329,16 @@ let g:UltiSnipsEditSplit="vertical"
set rtp+=~/.config/nvim/my-snippets set rtp+=~/.config/nvim/my-snippets
" Folding " Folding
set foldmethod=syntax set foldmethod=indent
set foldlevel=100 set foldlevel=100
" Use F9 to toggle folding " Use F9 or <Leader>z to toggle folding
inoremap <F9> <C-O>za inoremap <F9> <C-O>za
nnoremap <F9> za nnoremap <F9> za
onoremap <F9> <C-C>za onoremap <F9> <C-C>za
vnoremap <F9> zf vnoremap <F9> zf
nnoremap <Leader>a za nnoremap <Leader>z za
onoremap <Leader>a <C-C>za onoremap <Leader>z <C-C>za
vnoremap <Leader>a zf vnoremap <Leader>z zf
try try
source ~/.config/nvim/.vimrc_config_expand_region source ~/.config/nvim/.vimrc_config_expand_region

View File

@@ -74,7 +74,8 @@ bind-key C-o send-keys C-o
# move tmux copy buffer into x clipboard # move tmux copy buffer into x clipboard
# Vi copypaste mode # Vi copypaste mode
set-window-option -g mode-keys vi set-window-option -g mode-keys vi
set-option -s set-clipboard on set -g allow-passthrough on
set-option -g set-clipboard on
set -g @yank_with_mouse off set -g @yank_with_mouse off
set -g @yank_action 'copy-pipe' set -g @yank_action 'copy-pipe'
bind-key -Tcopy-mode-vi 'C-right' send -X next-word bind-key -Tcopy-mode-vi 'C-right' send -X next-word

View File

@@ -11,10 +11,10 @@ function set_permissions {
echo "----------" echo "----------"
echo "Disabling Quarantine for Casks ..." echo "Disabling Quarantine for Casks ..."
echo "----------" echo "----------"
find $PREFIX/Caskroom -name *.app -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \; sudo find $PREFIX/Caskroom -name *.app -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
find $PREFIX/Caskroom -type f -perm +111 -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \; sudo find $PREFIX/Caskroom -type f -perm +111 -exec bash -c "xattr -d com.apple.quarantine {} 2> /dev/null" \;
find /Applications/ -name *.app -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \; sudo find /Applications/ -name *.app -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
find /Applications/ -type f -perm +111 -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \; sudo find /Applications/ -type f -perm +111 -exec bash -c 'xattr -d com.apple.quarantine "{}" 2> /dev/null' \;
} }
function software_update { function software_update {
@@ -29,18 +29,18 @@ function update_brew {
echo "Updating brew software" echo "Updating brew software"
echo "----------" echo "----------"
brew update brew update
brew upgrade sudo -u $USER brew upgrade
echo "----------" echo "----------"
echo "Updating casks" echo "Updating casks"
echo "----------" echo "----------"
brew upgrade --cask --greedy --verbose sudo -u $USER brew upgrade --cask --greedy --verbose
} }
function cleanup { function cleanup {
echo "----------" echo "----------"
echo "Running cleanup" echo "Running cleanup"
echo "----------" echo "----------"
brew cleanup -s sudo -u $USER brew cleanup -s
} }
function diagnostics { function diagnostics {

View File

@@ -19,3 +19,13 @@ export PATH="$HOMEBREWPREFIX/opt/coreutils/libexec/gnubin:$HOME/.local/bin:$HOME
# Research # Research
# export PATH="/Users/fabian/Labor/Research/code_signing/02-tools:$PATH" # export PATH="/Users/fabian/Labor/Research/code_signing/02-tools:$PATH"
alias tailscale=/Applications/Tailscale.app/Contents/MacOS/Tailscale alias tailscale=/Applications/Tailscale.app/Contents/MacOS/Tailscale
alias virt-manager="LD_PRELOAD=/opt/homebrew/Cellar/glib/2.86.0/lib virt-manager"
HOMEBREW_COMMAND_NOT_FOUND_HANDLER="$(brew --repository)/Library/Homebrew/command-not-found/handler.sh"
if [ -f "$HOMEBREW_COMMAND_NOT_FOUND_HANDLER" ]; then
source "$HOMEBREW_COMMAND_NOT_FOUND_HANDLER";
fi
export DYLD_FALLBACK_LIBRARY_PATH="$HOMEBREW_PREFIX/lib:${DYLD_FALLBACK_LIBRARY_PATH}"
export GI_TYPELIB_PATH="$HOMEBREW_PREFIX/lib/girepository-1.0:${GI_TYPELIB_PATH}"
export PKG_CONFIG_PATH="$HOMEBREW_PREFIX/lib/pkgconfig:$HOMEBREW_PREFIX/share/pkgconfig:${PKG_CONFIG_PATH}"

View File

@@ -6,6 +6,15 @@
[[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh [[ -f ~/.zsh/.virtual_env_config.zsh ]] && source ~/.zsh/.virtual_env_config.zsh
[[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config [[ -f ~/.zsh/.local_config ]] && source ~/.zsh/.local_config
update_dotfiles() {
cd ~/dotfiles || return
if git fetch --dry-run 2>&1 | grep -q .; then
git pull > /dev/null 2>&1
fi
}
update_dotfiles 2>&1 &!
export LC_OSC52=1
# Load Antidote # Load Antidote
mkdir -p ${ZDOTDIR:-~}/.cache/zsh mkdir -p ${ZDOTDIR:-~}/.cache/zsh
@@ -18,6 +27,9 @@ fi
zstyle ':completion:*:ssh:*' hosts off zstyle ':completion:*:ssh:*' hosts off
zstyle ':completion:*:scp:*' hosts off zstyle ':completion:*:scp:*' hosts off
# Run rehash for external commands
zstyle ":completion:*:commands" rehash 1
# source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt` # source antidote and load plugins from `${ZDOTDIR:-~}/.zsh_plugins.txt`
source ${ZDOTDIR:-~}/.antidote/antidote.zsh source ${ZDOTDIR:-~}/.antidote/antidote.zsh
antidote load ${plugins_txt} ${static_file} antidote load ${plugins_txt} ${static_file}