From 7165e68328a4bfde7d6db0cc007cd574856045a7 Mon Sep 17 00:00:00 2001 From: afranco Date: Sun, 26 May 2024 16:12:58 +0100 Subject: [PATCH] chore: Fix macos only paths --- .config/alacritty/alacritty.toml | 2 +- .config/tmux/tmux_plugins.conf | 4 ++-- .config/zsh/main.zsh | 4 +++- .config/zsh/replacements.zsh | 16 ++-------------- .zshrc | 2 +- 5 files changed, 9 insertions(+), 19 deletions(-) diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml index 059800a..ffa1e86 100644 --- a/.config/alacritty/alacritty.toml +++ b/.config/alacritty/alacritty.toml @@ -4,7 +4,7 @@ import = ["~/.config/alacritty/themes/gruvbox_dark.toml"] TERM = "xterm-256color" [font] -size = 16.0 +size = 14.0 [font.normal] family = "JetBrainsMono Nerd Font Mono" diff --git a/.config/tmux/tmux_plugins.conf b/.config/tmux/tmux_plugins.conf index fff680a..7da6c6c 100644 --- a/.config/tmux/tmux_plugins.conf +++ b/.config/tmux/tmux_plugins.conf @@ -16,6 +16,6 @@ set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' set -g @continuum-restore 'on' set -g @continuum-save-interval '5' -set -g @continuum-boot 'on' -set -g @continuum-boot-options 'alacritty' +#set -g @continuum-boot 'on' +#set -g @continuum-boot-options 'alacritty' diff --git a/.config/zsh/main.zsh b/.config/zsh/main.zsh index 561d50b..dbbaa5e 100644 --- a/.config/zsh/main.zsh +++ b/.config/zsh/main.zsh @@ -21,4 +21,6 @@ enable-fzf-tab source $HOME/.opam/opam-init/init.zsh > /dev/null 2>&1 || true eval "$(direnv hook zsh)" -eval "$(/opt/homebrew/bin/brew shellenv)" +if [[ $(uname) == "Darwin" ]]; then + eval "$(/opt/homebrew/bin/brew shellenv)" +fi diff --git a/.config/zsh/replacements.zsh b/.config/zsh/replacements.zsh index 51a1633..b85d648 100644 --- a/.config/zsh/replacements.zsh +++ b/.config/zsh/replacements.zsh @@ -1,20 +1,8 @@ # ~/.config/zsh/replacements.zsh -ls() { - eza --icons -l --sort type "$@" -} +alias ls="eza --icons -l --sort type" -nvim() { - /opt/homebrew/bin/nvim --listen /tmp/nvim.pipe "$@" -} - -vim() { - /opt/homebrew/bin/nvim --listen /tmp/nvim.pipe "$@" -} - -v() { - /opt/homebrew/bin/nvim --listen /tmp/nvim.pipe "$@" -} +alias vim="nvim --listen /tmp/nvim.pipe" alias lg="lazygit" alias calcurse-caldav='CALCURSE_CALDAV_PASSWORD=$(keyring get caldav afonso) calcurse-caldav' diff --git a/.zshrc b/.zshrc index 09db794..c771fa9 100644 --- a/.zshrc +++ b/.zshrc @@ -77,7 +77,7 @@ ZSH_THEME="" # HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom? -ZSH_CUSTOM=/Users/afonso/.config/zsh +ZSH_CUSTOM=$HOME/.config/zsh # Which plugins would you like to load? # Standard plugins can be found in $ZSH/plugins/