bop sorta working fizing omp
This commit is contained in:
1904
.zcompdump
Normal file
1904
.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
72
.zshrc
Normal file
72
.zshrc
Normal file
@@ -0,0 +1,72 @@
|
||||
#!/bin/sh
|
||||
# env vars to set on login, zsh settings in ~/config/zsh/.zshrc
|
||||
# added `export ZDOTDIR="$HOME/.config/zsh"` to /etc/zsh/zshenv in order to place this file at .config/zsh/.zprofile
|
||||
# read first
|
||||
|
||||
debug=0
|
||||
|
||||
if [ $debug = 1 ]; then echo reading zshrc config from $0
|
||||
fi
|
||||
|
||||
# default programs
|
||||
export EDITOR="nvim"
|
||||
export TERM="st"
|
||||
export TERMINAL="st"
|
||||
export MUSPLAYER="termusic"
|
||||
export BROWSER="firefox"
|
||||
export BROWSER2="librewolf"
|
||||
# export DISPLAY=:0 # useful for some scripts
|
||||
|
||||
# follow XDG base dir specification
|
||||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
export XDG_DATA_HOME="$HOME/.local/share"
|
||||
export XDG_CACHE_HOME="$HOME/.cache"
|
||||
|
||||
# bootstrap .zshrc to ~/.config/zsh/.zshrc, any other zsh config files can also reside here
|
||||
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
|
||||
# history files
|
||||
export LESSHISTFILE="$XDG_CACHE_HOME/less_history"
|
||||
export PYTHON_HISTORY="$XDG_DATA_HOME/python/history"
|
||||
|
||||
# add scripts to path
|
||||
export PATH="$XDG_CONFIG_HOME/scripts:$PATH"
|
||||
|
||||
# moving other files and some other vars
|
||||
export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
|
||||
export XPROFILE="$XDG_CONFIG_HOME/x11/xprofile"
|
||||
export XREkOURCES="$XDG_CONFIG_HOME/x11/xresources"
|
||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc-2.0" # gtk 3 & 4 are XDG compliant
|
||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||
export PYTHONSTARTUP="$XDG_CONFIG_HOME/python/pythonrc"
|
||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
||||
export CARGO_HOME="$XDG_DATA_HOME/cargo"
|
||||
export GOPATH="$XDG_DATA_HOME/go"
|
||||
export GOBIN="$GOPATH/bin"
|
||||
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
|
||||
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc"
|
||||
export GRADLE_USER_HOME="$XDG_DATA_HOME/gradle"
|
||||
export NUGET_PACKAGES="$XDG_CACHE_HOME/NuGetPackages"
|
||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME/java"
|
||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||
export PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||||
export FFMPEG_DATADIR="$XDG_CONFIG_HOME/ffmpeg"
|
||||
export WINEPREFIX="$XDG_DATA_HOME/wineprefixes/default"
|
||||
export DATE=$(date "+%A, %B %e %_I:%M%P")
|
||||
|
||||
export FZF_DEFAULT_OPTS="--style minimal --color 16 --layout=reverse --height 30% --preview='bat -p --color=always {}'"
|
||||
export FZF_CTRL_R_OPTS="--style minimal --color 16 --info inline --no-sort --no-preview" # separate opts for history widget
|
||||
export MANPAGER="less -R --use-color -Dd+r -Du+b" # colored man pages
|
||||
|
||||
# colored less + termcap vars
|
||||
export LESS="R --use-color -Dd+r -Du+b"
|
||||
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||||
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||||
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
|
||||
export LESS_TERMCAP_so="$(printf '%b' '[01;44;33m')"
|
||||
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
|
||||
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
|
||||
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
|
||||
|
||||
#source primary config script
|
||||
source $XDG_CONFIG_HOME/zsh/zsh.config
|
||||
94
zsh.config
Normal file
94
zsh.config
Normal file
@@ -0,0 +1,94 @@
|
||||
# main zsh settings. env in .zshrc
|
||||
# read second
|
||||
|
||||
if [ $debug = 1 ]; then echo reading config from $0
|
||||
fi
|
||||
## set up oh-my-posh shell
|
||||
export POSH_SESSION_ID="9b903a91-4978-487d-967e-6aed529e69ca"
|
||||
|
||||
# source global shell alias & variables files
|
||||
[ -f "$XDG_CONFIG_HOME/shell/alias" ] && source "$XDG_CONFIG_HOME/shell/alias"
|
||||
[ -f "$XDG_CONFIG_HOME/shell/vars" ] && source "$XDG_CONFIG_HOME/shell/vars"
|
||||
|
||||
# load modules
|
||||
zmodload zsh/complist
|
||||
autoload -U compinit && compinit
|
||||
autoload -U colors && colors
|
||||
# autoload -U tetris # main attraction of zsh, obviously
|
||||
|
||||
|
||||
# cmp opts
|
||||
zstyle ':completion:*' menu select # tab opens cmp menu
|
||||
zstyle ':completion:*' special-dirs true # force . and .. to show in cmp menu
|
||||
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} ma=0\;33 # colorize cmp menu
|
||||
# zstyle ':completion:*' file-list true # more detailed list
|
||||
zstyle ':completion:*' squeeze-slashes false # explicit disable to allow /*/ expansion
|
||||
|
||||
# main opts
|
||||
setopt append_history inc_append_history share_history # better history
|
||||
# on exit, history appends rather than overwrites; history is appended as soon as cmds executed; history shared across sessions
|
||||
setopt auto_menu menu_complete # autocmp first menu match
|
||||
setopt autocd # type a dir to cd
|
||||
setopt auto_param_slash # when a dir is completed, add a / instead of a trailing space
|
||||
setopt no_case_glob no_case_match # make cmp case insensitive
|
||||
setopt globdots # include dotfiles
|
||||
setopt extended_glob # match ~ # ^
|
||||
setopt interactive_comments # allow comments in shell
|
||||
unsetopt prompt_sp # don't autoclean blanklines
|
||||
stty stop undef # disable accidental ctrl s
|
||||
|
||||
# history opts
|
||||
HISTSIZE=1000000
|
||||
SAVEHIST=1000000
|
||||
HISTFILE="$XDG_CACHE_HOME/zsh_history" # move histfile to cache
|
||||
HISTCONTROL=ignoreboth # consecutive duplicates & commands starting with space are not saved
|
||||
|
||||
|
||||
# fzf setup
|
||||
source <(fzf --zsh) # allow for fzf history widget
|
||||
|
||||
|
||||
# binds
|
||||
bindkey "^a" beginning-of-line
|
||||
bindkey "^e" end-of-line
|
||||
bindkey "^k" kill-line
|
||||
bindkey "^j" backward-word
|
||||
bindkey "^k" forward-word
|
||||
bindkey "^H" backward-kill-word
|
||||
# ctrl J & K for going up and down in prev commands
|
||||
bindkey "^J" history-search-forward
|
||||
bindkey "^K" history-search-backward
|
||||
bindkey '^R' fzf-history-widget
|
||||
|
||||
|
||||
# open fff file manager with ctrl f
|
||||
# openfff() {
|
||||
# fff <$TTY
|
||||
# zle redisplay
|
||||
#}
|
||||
#zle -N openfff
|
||||
#bindkey '^f' openfff
|
||||
|
||||
|
||||
# set up prompt
|
||||
NEWLINE=$'\n'
|
||||
# PROMPT="${NEWLINE}%K{#2E3440}%F{#E5E9F0}$(date +%_I:%M%P) %K{#3b4252}%F{#ECEFF4} %n %K{#4c566a} %~ %f%k ❯ " # nord theme
|
||||
# PROMPT="${NEWLINE}%K{#32302f}%F{#d5c4a1} $0 %K{#3c3836}%F{#d5c4a1} %n %K{#504945} %~ %f%k ❯ " # warmer theme
|
||||
# PROMPT="${NEWLINE}%K{$COL0}%F{$COL1}$(date +%_I:%M%P) %K{$COL0}%F{$COL2} %n %K{$COL3} %~ %f%k ❯ " # pywal colors, from postrun script
|
||||
|
||||
# echo -e "${NEWLINE}\033[48;2;46;52;64;38;2;216;222;233m $0 \033[0m\033[48;2;59;66;82;38;2;216;222;233m $(uptime -p | cut -c 4-) \033[0m\033[48;2;76;86;106;38;2;216;222;233m $(uname -r) \033[0m" # nord theme
|
||||
# echo -e "${NEWLINE}\x1b[38;5;137m\x1b[48;5;0m it's$(date +%_I:%M%P) \x1b[38;5;180m\x1b[48;5;0m $(uptime -p | cut -c 4-) \x1b[38;5;223m\x1b[48;5;0m $(uname -r) \033[0m" # warmer theme
|
||||
# echo -e "${NEWLINE}\x1b[38;5;137m\x1b[48;5;0m it's$(print -P '%D{%_I:%M%P}\n') \x1b[38;5;180m\x1b[48;5;0m $(uptime -p | cut -c 4-) \x1b[38;5;223m\x1b[48;5;0m $(uname -r) \033[0m" # current
|
||||
|
||||
# autosuggestions
|
||||
# requires zsh-autosuggestions
|
||||
# source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
# syntax highlighting
|
||||
# requires zsh-syntax-highlighting package
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
#import oh-my-posh shell
|
||||
export POSH_SESSION_ID="b5bf3508-938e-40c1-8126-f73becb49bca";
|
||||
source $'/home/venus/.cache/oh-my-posh/init.14695981039346656037.zsh'
|
||||
|
||||
Reference in New Issue
Block a user