Update command separations for mac and linux setups
This commit is contained in:
parent
a1a000db62
commit
d8783c14a0
2 changed files with 25 additions and 148 deletions
|
@ -1,129 +0,0 @@
|
||||||
-- Pull in the wezterm API
|
|
||||||
local wezterm = require("wezterm")
|
|
||||||
|
|
||||||
-- This will hold the configuration.
|
|
||||||
local config = wezterm.config_builder()
|
|
||||||
|
|
||||||
-- Basic Wezterm settings
|
|
||||||
config.window_close_confirmation = "NeverPrompt"
|
|
||||||
config.automatically_reload_config = true
|
|
||||||
config.enable_tab_bar = false
|
|
||||||
config.font = wezterm.font("FiraCode Nerd Font Mono")
|
|
||||||
config.harfbuzz_features = { "calt=0", "clig=0", "liga=0" }
|
|
||||||
config.font_size = 9
|
|
||||||
-- Color scheme configuration based on whether terminal is set to light mode
|
|
||||||
local light_mode = false
|
|
||||||
local home = os.getenv("HOME")
|
|
||||||
if light_mode then
|
|
||||||
config.colors = {
|
|
||||||
-- The default text color
|
|
||||||
foreground = "#4F5e68",
|
|
||||||
-- The default background color
|
|
||||||
background = "#F0EDEC",
|
|
||||||
|
|
||||||
-- Overrides the cell background color when the current cell is occupied by the
|
|
||||||
-- cursor and the cursor style is set to Block
|
|
||||||
cursor_bg = "#2c363c",
|
|
||||||
-- Overrides the text color when the current cell is occupied by the cursor
|
|
||||||
cursor_fg = "#F0EDEC",
|
|
||||||
-- Specifies the border color of the cursor when the cursor style is set to Block,
|
|
||||||
-- or the color of the vertical or horizontal bar when the cursor style is set to
|
|
||||||
-- Bar or Underline.
|
|
||||||
cursor_border = "#2c363c",
|
|
||||||
|
|
||||||
-- the foreground color of selected text
|
|
||||||
selection_fg = "#F0edec",
|
|
||||||
-- the background color of selected text
|
|
||||||
selection_bg = "#2c363c",
|
|
||||||
|
|
||||||
-- The color of the scrollbar "thumb"; the portion that represents the current viewport
|
|
||||||
scrollbar_thumb = "#222222",
|
|
||||||
|
|
||||||
-- The color of the split lines between panes
|
|
||||||
split = "#444444",
|
|
||||||
|
|
||||||
ansi = {
|
|
||||||
"#F0EDEC",
|
|
||||||
"#A8334C",
|
|
||||||
"#4F6C31",
|
|
||||||
"#944927",
|
|
||||||
"#286486",
|
|
||||||
"#88507D",
|
|
||||||
"#3B8992",
|
|
||||||
"#2C363C",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
|
|
||||||
"#CFC1BA",
|
|
||||||
"#94253E",
|
|
||||||
"#3F5A22",
|
|
||||||
"#803D1C",
|
|
||||||
"#1D5573",
|
|
||||||
"#7B3B70",
|
|
||||||
"#2B747C",
|
|
||||||
"#4F5E68",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
config.window_background_opacity = 0.95
|
|
||||||
local f = io.open(home .. "/.config/nvim/light_mode", "w")
|
|
||||||
assert(f)
|
|
||||||
f:close()
|
|
||||||
else
|
|
||||||
config.colors = {
|
|
||||||
-- The default text color
|
|
||||||
foreground = "#8e8e8e",
|
|
||||||
-- The default background color
|
|
||||||
background = "#191919",
|
|
||||||
|
|
||||||
-- Overrides the cell background color when the current cell is occupied by the
|
|
||||||
-- cursor and the cursor style is set to Block
|
|
||||||
cursor_bg = "#BBBBBB",
|
|
||||||
-- Overrides the text color when the current cell is occupied by the cursor
|
|
||||||
cursor_fg = "#191919",
|
|
||||||
-- Specifies the border color of the cursor when the cursor style is set to Block,
|
|
||||||
-- or the color of the vertical or horizontal bar when the cursor style is set to
|
|
||||||
-- Bar or Underline.
|
|
||||||
cursor_border = "#BBBBBB",
|
|
||||||
|
|
||||||
-- the foreground color of selected text
|
|
||||||
selection_fg = "#191919",
|
|
||||||
-- the background color of selected text
|
|
||||||
selection_bg = "#BBBBBB",
|
|
||||||
|
|
||||||
-- The color of the scrollbar "thumb"; the portion that represents the current viewport
|
|
||||||
scrollbar_thumb = "#222222",
|
|
||||||
|
|
||||||
-- The color of the split lines between panes
|
|
||||||
split = "#444444",
|
|
||||||
|
|
||||||
ansi = {
|
|
||||||
"#191919",
|
|
||||||
"#DE6E7C",
|
|
||||||
"#819B69",
|
|
||||||
"#B77E64",
|
|
||||||
"#6099C0",
|
|
||||||
"#B279A7",
|
|
||||||
"#66A5AD",
|
|
||||||
"#BBBBBB",
|
|
||||||
},
|
|
||||||
brights = {
|
|
||||||
"#3d3839",
|
|
||||||
"#E8838F",
|
|
||||||
"#8BAE68",
|
|
||||||
"#D68C67",
|
|
||||||
"#61ABDA",
|
|
||||||
"#CF86C1",
|
|
||||||
"#65B8C1",
|
|
||||||
"#8e8e8e",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
config.window_background_opacity = 0.85
|
|
||||||
os.remove(home .. "/.config/nvim/light_mode")
|
|
||||||
end
|
|
||||||
|
|
||||||
config.keys = {
|
|
||||||
{ key = "j", mods = "CTRL|SHIFT", action = wezterm.action.DecreaseFontSize },
|
|
||||||
{ key = "k", mods = "CTRL|SHIFT", action = wezterm.action.IncreaseFontSize },
|
|
||||||
}
|
|
||||||
-- and finally, return the configuration to wezterm
|
|
||||||
return config -- Pull in the wezterm API
|
|
44
home/.zshrc
44
home/.zshrc
|
@ -23,17 +23,15 @@ compinit
|
||||||
export OMPI_MCA_rmaps_base_oversubscribe=1
|
export OMPI_MCA_rmaps_base_oversubscribe=1
|
||||||
export CLICOLOR=1
|
export CLICOLOR=1
|
||||||
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
|
||||||
alias vi="nvim"
|
|
||||||
alias vim="nvim"
|
load_env() {
|
||||||
alias mergepdf="gs -dBATCH -dNOPAUSE -dQUIET -sDEVICE=pdfwrite -sOutputFile=output.pdf"
|
set -a
|
||||||
alias ddg="w3m ddg.gg"
|
. "$1"
|
||||||
alias cal="khal calendar"
|
set +a
|
||||||
#alias sxiv="sxiv-rifle"
|
|
||||||
alias clip2png="xclip -selection clipboard -target image/png -out"
|
|
||||||
function addbin(){
|
|
||||||
ln -s $PWD/$1 /home/aselimov/bin
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias clip2png="xclip -selection clipboard -target image/png -out"
|
||||||
|
|
||||||
export XKB_DEFAULT_OPTIONS="caps:escape"
|
export XKB_DEFAULT_OPTIONS="caps:escape"
|
||||||
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_='
|
||||||
|
|
||||||
|
@ -49,16 +47,10 @@ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
|
||||||
|
|
||||||
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
|
||||||
|
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
if [ $(which pyenv 2>&1 1>/dev/null) ]; then
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
eval "$(pyenv init - zsh)"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
|
eval "$(pyenv init - zsh)"
|
||||||
# Settings that need to swap between Mac and Linux
|
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
|
||||||
export PATH="$PATH:/opt/homebrew/bin"
|
|
||||||
alias ls="gls --classify --group-directories-first --color"
|
|
||||||
else
|
|
||||||
alias ls="ls --classify --group-directories-first --color"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
@ -73,3 +65,17 @@ source "$HOME/.config/zsh/zsh-history-substring-search/zsh-history-substring-sea
|
||||||
|
|
||||||
bindkey '^[[A' history-substring-search-up
|
bindkey '^[[A' history-substring-search-up
|
||||||
bindkey '^[[B' history-substring-search-down
|
bindkey '^[[B' history-substring-search-down
|
||||||
|
|
||||||
|
# Settings that need to swap between Mac and Linux
|
||||||
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
|
export PATH="$PATH:/opt/homebrew/bin"
|
||||||
|
alias ls="gls --classify --group-directories-first --color"
|
||||||
|
alias gemini="(source ~/.gemini_project && gemini)"
|
||||||
|
export NVIM_JDTLS_JAVA_HOME="/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/"
|
||||||
|
# I only start tmux by default on Mac because of dwm+swallow patch
|
||||||
|
if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then
|
||||||
|
tmux attach -t dev || tmux new -s dev
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
alias ls="ls --classify --group-directories-first --color"
|
||||||
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue