[fix] Add fnm for both macos and linux
This commit is contained in:
8
config/fish/conf.d/linux/fnm.fish
Normal file
8
config/fish/conf.d/linux/fnm.fish
Normal 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";
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
if [ (uname) = "Darwin" ];
|
|
||||||
source ~/.config/fish/conf.d/macos/*
|
|
||||||
end
|
|
||||||
7
config/fish/conf.d/os.fish
Normal file
7
config/fish/conf.d/os.fish
Normal 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
9
config/tmux/scratch
Executable 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
|
||||||
@@ -58,3 +58,6 @@ bind r source-file ~/.config/tmux/tmux.conf \; display-message "Configuration re
|
|||||||
bind C-q last-window
|
bind C-q last-window
|
||||||
bind m send-keys -t.- 'mpcfzf' Enter
|
bind m send-keys -t.- 'mpcfzf' Enter
|
||||||
bind o set status
|
bind o set status
|
||||||
|
|
||||||
|
bind-key -n C-\\ run-shell '~/.config/tmux/scratch'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user