Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
ho-oto committed Feb 12, 2024
1 parent 9b9141e commit 865de2b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
23 changes: 12 additions & 11 deletions config/xdg/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,15 @@ local key_tables = {
end)
},
-- move tab
{ key = "Tab", action = wezterm.action { ActivateTabRelative = 1 } },
{ key = "Tab", mods = "SHIFT", action = wezterm.action { ActivateTabRelative = -1 } },
{
key = "Tab",
action = wezterm.action { ActivateTabRelative = 1 }
},
{
key = "Tab",
mods = "SHIFT",
action = wezterm.action { ActivateTabRelative = -1 }
},
-- misc
{
key = "r",
Expand Down Expand Up @@ -178,7 +185,7 @@ wezterm.on("format-tab-title", function(tab, tabs, panes, config, hover, max_wid
return elements
end)

wezterm.on("update-right-status", function(window, pane)
wezterm.on("update-status", function(window, pane)
local SOLID_LEFT_ARROW = utf8.char(0xe0b6)

local color_mode = ""
Expand All @@ -205,14 +212,8 @@ wezterm.on("update-right-status", function(window, pane)

local cwd_uri = pane:get_current_working_dir()
if cwd_uri then
cwd_uri = cwd_uri:sub(8);
local slash = cwd_uri:find("/")
local hostname = ""
if slash then
hostname = cwd_uri:sub(1, slash - 1)
local dot = hostname:find("[.]")
if dot then hostname = hostname:sub(1, dot - 1) end
insert_element(hostname)
if cwd_uri.host then
insert_element(cwd_uri.host)
end
end

Expand Down
7 changes: 1 addition & 6 deletions config/zprofile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@ export XDG_DATA_HOME="$HOME/.local/share"

export DOTFILES_ROOT="$HOME/.dotfiles"
export PATH="$DOTFILES_ROOT/bin:$PATH"

if [ -d /opt/homebrew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
else
eval "$(brew shellenv)"
fi
[ -d /opt/homebrew ] && eval "$(/opt/homebrew/bin/brew shellenv)" || eval "$(brew shellenv)"

export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.cargo/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion config/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_NO_STORE

alias ls='exa --icons --group-directories-first --color=auto'
alias ls='eza --icons --group-directories-first --color=auto'
alias ll='ls --long --header --git'
alias la='ll --all'
alias lt='ls --tree'
Expand Down

0 comments on commit 865de2b

Please sign in to comment.