diff options
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua | 7 | ||||
| -rw-r--r-- | ar/.config/tmux/tmux.conf | 2 | ||||
| -rw-r--r-- | global/.ssh/config | 7 | ||||
| -rw-r--r-- | mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua | 7 | ||||
| -rw-r--r-- | mac/.config/shell/aliasrc | 9 | ||||
| -rw-r--r-- | mac/.config/tmux/tmux.conf | 6 |
6 files changed, 29 insertions, 9 deletions
diff --git a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua index 3c491dd..33586d3 100644 --- a/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua +++ b/ar/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua @@ -112,6 +112,13 @@ return { _log_level = vim.log.levels.WARN, } end, + init = function() + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "<localleader>h", group = "HTTP" }, + }) + end, keys = { { "<localleader>ho", ":Rest open<CR>", desc = "Open result pane" }, { "<localleader>hr", ":Rest run<CR>", desc = "Run request under the cursor" }, diff --git a/ar/.config/tmux/tmux.conf b/ar/.config/tmux/tmux.conf index cc63f7f..921865a 100644 --- a/ar/.config/tmux/tmux.conf +++ b/ar/.config/tmux/tmux.conf @@ -282,7 +282,7 @@ set -g @offline_icon "nok" set -ogq @thm_bg "default" # transparent background set -g status-left "" set -g status-left-length 90 -set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}')/#(tmux list-sessions | wc -l) " +set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}' | tr -d '[:space:]')/#(tmux list-sessions | wc -l | tr -d '[:space:]') " set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_surface_2},fg=#{@thm_green},bold,italics] #S },#{#[bg=default,fg=#{@thm_green}] #S }}" set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" diff --git a/global/.ssh/config b/global/.ssh/config index 7d6869e..66832f4 100644 --- a/global/.ssh/config +++ b/global/.ssh/config @@ -52,6 +52,13 @@ Host S-onlyone-aws-dts Port 22 LocalForward 25432 127.0.0.1:5432 +Host S-onlyone + HostName 15.165.148.59 + User ec2-user + IdentityFile ~/.ssh/keys/evcp-LightsailDefaultKey-ap-northeast-2.pem + Port 22 + LocalForward 35432 127.0.0.1:5432 + Host evcp-m HostName 13.125.209.49 User ec2-user diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua index 3c491dd..33586d3 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/rest.lua @@ -112,6 +112,13 @@ return { _log_level = vim.log.levels.WARN, } end, + init = function() + local wk = require("which-key") + wk.add({ + mode = { "n" }, + { "<localleader>h", group = "HTTP" }, + }) + end, keys = { { "<localleader>ho", ":Rest open<CR>", desc = "Open result pane" }, { "<localleader>hr", ":Rest run<CR>", desc = "Run request under the cursor" }, diff --git a/mac/.config/shell/aliasrc b/mac/.config/shell/aliasrc index 557a262..2163e68 100644 --- a/mac/.config/shell/aliasrc +++ b/mac/.config/shell/aliasrc @@ -499,9 +499,8 @@ alias za='zathura' alias sps="source ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/profile" alias szs="source ${XDG_CONFIG_HOME:-${HOME}/.config}/zsh/.zshrc" - -alias ylogh='ylog -s hidden -c us | grep $(LC_TIME=C date +%d/%b)' -alias ylogi='ylog -s hidden -c us | grep $(LC_TIME=C date -v-1d +%d/%b)' +alias ylogh='ylog -s hidden -c us | grep $(LC_TIME=C date +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' +alias ylogi='ylog -s hidden -c us | grep $(LC_TIME=C date -v-1d +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' +alias ylogt='ylog -s recordings -c us | grep $(LC_TIME=C date +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' +alias ylogy='ylog -s recordings -c us | grep $(LC_TIME=C date -v-1d +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' alias ylogu='ylog -s recordings -c us' -alias ylogt='ylog -s recordings -c us | grep $(LC_TIME=C date +%d/%b)' -alias ylogy='ylog -s recordings -c us | grep $(LC_TIME=C date -v-1d +%d/%b)' diff --git a/mac/.config/tmux/tmux.conf b/mac/.config/tmux/tmux.conf index d88a4d8..eb13530 100644 --- a/mac/.config/tmux/tmux.conf +++ b/mac/.config/tmux/tmux.conf @@ -237,7 +237,7 @@ set -g @resurrect-restore 'C-r' set -g @resurrect-strategy-vim 'session' set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' -set -g @resurrect-processes 'neomutt newsboat psql mysql sqlite3 ssh' +set -g @resurrect-processes 'kitty neomutt newsboat psql mysql sqlite3 ssh' # side-bar set -g @sidebar-tree 'e' @@ -284,7 +284,7 @@ set -g @offline_icon "nok" set -ogq @thm_bg "default" # transparent background set -g status-left "" set -g status-left-length 90 -set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}')/#(tmux list-sessions | wc -l) " +set -ga status-left "#[bg=default,fg=#{@thm_red}] #(tmux list-sessions | nl | grep -w \"$(tmux display-message -p '#S')\" | awk '{print \$1}' | tr -d '[:space:]')/#(tmux list-sessions | wc -l | tr -d '[:space:]') " set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" set -ga status-left "#{?client_prefix,#{#[bg=#{@thm_surface_2},fg=#{@thm_green},bold,italics] #S },#{#[bg=default,fg=#{@thm_green}] #S }}" set -ga status-left "#[bg=default,fg=#{@thm_overlay_0},none]│" @@ -349,4 +349,4 @@ set -g window-status-current-style "bg=#{@thm_peach},fg=#{@thm_surface_0},bold" ### --- RUN TPM --- ### -run '${TMUX_PLUGIN_MANAGER_PATH}/tpm/tpm' +run '${TMUX_PLUGIN_MANAGER_PATH}/tpm' |
