[fix] Add fnm for both macos and linux

This commit is contained in:
Uttarayan
2023-07-25 18:51:30 +05:30
parent ba2662b20b
commit 6ac9a14e74
5 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,8 @@
set -gx PATH "/run/user/1000/fnm_multishells/295966_1690289932404/bin" $PATH;
set -gx FNM_VERSION_FILE_STRATEGY "local";
set -gx FNM_LOGLEVEL "info";
set -gx FNM_ARCH "x64";
set -gx FNM_DIR "/home/fs0c131y/.local/share/fnm";
set -gx FNM_COREPACK_ENABLED "false";
set -gx FNM_MULTISHELL_PATH "/run/user/1000/fnm_multishells/295966_1690289932404";
set -gx FNM_NODE_DIST_MIRROR "https://nodejs.org/dist";

View File

@@ -1,3 +0,0 @@
if [ (uname) = "Darwin" ];
source ~/.config/fish/conf.d/macos/*
end

View File

@@ -0,0 +1,7 @@
switch (uname)
case "Darwin"
source ~/.config/fish/conf.d/macos/*
case "Linux"
source ~/.config/fish/conf.d/linux/*
end

9
config/tmux/scratch Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/sh
width=${2:-80%}
height=${2:-80%}
if [ "$(tmux display-message -p -F "#{session_name}")" = "scratch" ];then
tmux detach-client
else
tmux popup -d '#{pane_current_path}' -xC -yC -w$width -h$height -E "tmux attach -t scratch || tmux new -s scratch"
fi

View File

@@ -58,3 +58,6 @@ bind r source-file ~/.config/tmux/tmux.conf \; display-message "Configuration re
bind C-q last-window
bind m send-keys -t.- 'mpcfzf' Enter
bind o set status
bind-key -n C-\\ run-shell '~/.config/tmux/scratch'