Skip to content

Commit

Permalink
zsh updates
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleimp committed Sep 7, 2024
1 parent 675c4b8 commit 374aa25
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .config/wezterm/wezterm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ if wezterm.config_builder then
config = wezterm.config_builder()
end

if theme == "light" then
config.color_scheme = "One Light (Gogh)"
else
config.color_scheme = "Gruvbox Dark (Gogh)"
end
-- if theme == "light" then
-- config.color_scheme = "One Light (Gogh)"
-- else
-- config.color_scheme = "Gruvbox Dark (Gogh)"
-- end

config.font = wezterm.font("IosevkaTerm Nerd Font")
config.font_size = 16
-- config.font = wezterm.font("IosevkaTerm Nerd Font")
config.font_size = 14
config.hide_tab_bar_if_only_one_tab = true

config.keys = {
Expand Down
29 changes: 29 additions & 0 deletions .sh_helpers
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Define color codes
declare -A COLORS
COLORS[black]="0;30"
COLORS[red]="0;31"
COLORS[green]="0;32"
COLORS[yellow]="0;33"
COLORS[blue]="0;34"
COLORS[magenta]="0;35"
COLORS[cyan]="0;36"
COLORS[white]="0;37"
COLORS[gray]="0;90"

# Function to print colored text
cprint() {
local text="$1"
local color="$2"

# Get color code from COLORS array
local color_code=${COLORS[$color]}

# Check if color code exists
if [[ -z "$color_code" ]]; then
echo "Error: Color '$color' not supported."
return 1
fi

# Print text with color
echo -e "\033[${color_code}m$text\033[0m"
}
4 changes: 1 addition & 3 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ bind -r ] select-window -t :+
bind | split-window -h
bind - split-window -v

bind-key -r i run-shell "tmux neww tmux-cht.sh"

bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
bind-key -r O run-shell "~/.local/bin/tmux-sessionizer ~/OSS"
bind-key -r O run-shell "~/.local/bin/tmux-sessionizer ~/git"
bind-key -r W run-shell "~/.local/bin/tmux-sessionizer ~/workspace"
bind-key -r V run-shell "~/.local/bin/tmux-sessionizer $DOTFILES"

Expand Down
8 changes: 8 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
source ~/.sh_helpers
export ZSH=$HOME/.oh-my-zsh

ZSH_THEME="muse"
Expand Down Expand Up @@ -52,10 +53,17 @@ export DOTFILES=$HOME/.dotfiles
export NVIMCONF=$HOME/nvim
export BAT_THEME=gruvbox-dark

export KERL_BUILD_DOCS=yes
export KERL_CONFIGURE_OPTIONS="--without-javac --disable-jit"
export KERL_INSTALL_MANPAGES=yes
export KERL_INSTALL_HTMLDOCS=yes

source $HOME/.cargo/env
source $HOME/.cargo/bin
source ~/.aliases

source ~/.hginsightsrc

# append completions to fpath
fpath=(${ASDF_DIR}/completions $fpath)
# initialise completions with ZSH's compinit
Expand Down

0 comments on commit 374aa25

Please sign in to comment.