From 2eef9ac1147178bb29174deaaf065b1ba834baea Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Sun, 26 Mar 2023 17:24:45 +0530 Subject: [PATCH] [fix] Some mac/linux sharing issue with fish configs --- config/fish/conf.d/abbr.fish | 1 + config/fish/fish_variables | 1 - config/tmux/tmux.conf | 5 ++++- 3 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 config/fish/conf.d/abbr.fish diff --git a/config/fish/conf.d/abbr.fish b/config/fish/conf.d/abbr.fish new file mode 100644 index 00000000..108d7ecb --- /dev/null +++ b/config/fish/conf.d/abbr.fish @@ -0,0 +1 @@ +abbr t '$HOME/.config/tmux/start-tmux' diff --git a/config/fish/fish_variables b/config/fish/fish_variables index 79b8a421..121bf1a8 100644 --- a/config/fish/fish_variables +++ b/config/fish/fish_variables @@ -21,7 +21,6 @@ SETUVAR _fish_abbr_reru:evcxr SETUVAR _fish_abbr_rpc:patch\x20\x2dp0\x20\x3c\x20\x7e/\x2elocal/share/console\x2ediff SETUVAR _fish_abbr_sl:exa SETUVAR _fish_abbr_sss:sqlite3\x20\x7e/Library/Application\x5c\x20Support/com\x2eaftershoot\x2eaftershoot/database\x2esqlite\x20\x22SELECT -SETUVAR _fish_abbr_t:/home/fs0c131y/\x2econfig/tmux/start\x2dtmux SETUVAR _fish_abbr_v:nvim SETUVAR _fish_abbr_wget:curl\x20\x2dO SETUVAR _fish_abbr_zc:fd\x20\x7c\x20xargs\x20zip diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index f0de935c..0449fb67 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -18,7 +18,10 @@ set -g @plugin 'dracula/tmux' # load plugin manager run -b '~/.config/tmux/plugins/tpm/tpm' -set -g default-shell '/usr/bin/fish' +# if on macos use /opt/homebrew/bin/fish +if-shell "[ -f /usr/bin/fish ]" "set -g default-shell '/usr/bin/fish'" +if-shell "[ -f /opt/homebrew/bin/fish ]" "set -g default-shell '/opt/homebrew/bin/fish'" + set -g default-terminal 'tmux-256color' set -ga terminal-overrides ',*256col*:Tc' set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'