updated some configs to remove dependency on cachyOS and fix install.
added install options for unipkg and git-sync.
This commit is contained in:
+6
-5
@@ -35,10 +35,10 @@ alias documentation=~/.config/sdgos/tuis/documentation.sh
|
||||
alias tldrtui=~/.config/sdgos/help/cmd-help.sh
|
||||
alias helptui=~/.config/sdgos/help/help.sh
|
||||
|
||||
EDITOR=micro
|
||||
IMAGEPROGRAM='satty --filename'
|
||||
TIPS=$(cat ~/.config/sdgos/tips/tips.list)
|
||||
SHELL=/bin/zsh
|
||||
export EDITOR=micro
|
||||
export IMAGEPROGRAM='satty --filename'
|
||||
export TIPS=$(cat ~/.config/sdgos/tips/tips.list)
|
||||
export SHELL=/bin/zsh
|
||||
|
||||
function plz() {
|
||||
if [ -z "$1" ]; then
|
||||
@@ -61,6 +61,7 @@ alias -s png=$IMAGEPROGRAM
|
||||
alias -s jpg=$IMAGEPROGRAM
|
||||
alias -s jpeg=$IMAGEPROGRAM
|
||||
alias -s webp=$IMAGEPROGRAM
|
||||
alias -s nix=$EDITOR
|
||||
|
||||
eval "$(zoxide init zsh --cmd cd )"
|
||||
source <(fzf --zsh)
|
||||
source <(fzf --zsh)
|
||||
|
||||
+90
-3
@@ -5,13 +5,100 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
|
||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||
fi
|
||||
|
||||
source /usr/share/cachyos-zsh-config/cachyos-config.zsh
|
||||
# Path to your oh-my-zsh installation.
|
||||
export ZSH="/usr/share/oh-my-zsh"
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
#DISABLE_MAGIC_FUNCTIONS="true"
|
||||
|
||||
# Uncomment the following line to enable command auto-correction.
|
||||
ENABLE_CORRECTION="true"
|
||||
|
||||
# Uncomment the following line to display red dots whilst waiting for completion.
|
||||
COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
[[ -z "${plugins[*]}" ]] && plugins=(git fzf extract)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Ignore commands that start with spaces and duplicates.
|
||||
|
||||
export HISTCONTROL=ignoreboth
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Don't add certain commands to the history file.
|
||||
|
||||
export HISTORY_IGNORE="(\&|[bf]g|c|clear|history|exit|q|pwd|* --help)"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Use custom `less` colors for `man` pages.
|
||||
|
||||
export LESS_TERMCAP_md="$(tput bold 2> /dev/null; tput setaf 2 2> /dev/null)"
|
||||
export LESS_TERMCAP_me="$(tput sgr0 2> /dev/null)"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Make new shells get the history lines from all previous
|
||||
# shells instead of the default "last window closed" history.
|
||||
|
||||
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
|
||||
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
||||
# Set personal aliases, overriding those provided by oh-my-zsh libs,
|
||||
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
|
||||
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
|
||||
#alias open="xdg-open"
|
||||
alias make="make -j`nproc`"
|
||||
alias ninja="ninja -j`nproc`"
|
||||
alias n="ninja"
|
||||
alias c="clear"
|
||||
alias rmpkg="sudo pacman -Rsn"
|
||||
alias cleanch="sudo pacman -Scc"
|
||||
alias fixpacman="sudo rm /var/lib/pacman/db.lck"
|
||||
alias update="sudo pacman -Syu"
|
||||
|
||||
# Help people new to Arch
|
||||
alias apt="man pacman"
|
||||
alias apt-get="man pacman"
|
||||
alias please="sudo"
|
||||
alias tb="nc termbin.com 9999"
|
||||
|
||||
# Cleanup orphaned packages
|
||||
alias cleanup="sudo pacman -Rsn $(pacman -Qtdq)"
|
||||
|
||||
# Get the error messages from journalctl
|
||||
alias jctl="journalctl -p 3 -xb"
|
||||
|
||||
# Recent installed packages
|
||||
alias rip="expac --timefmt='%Y-%m-%d %T' '%l\t%n %v' | sort | tail -200 | nl"
|
||||
|
||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# Fish-like syntax highlighting and autosuggestions
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
# Use history substring search
|
||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
||||
|
||||
# pkgfile "command not found" handler
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
|
||||
export FZF_BASE=/usr/share/fzf
|
||||
|
||||
|
||||
# Added by LM Studio CLI (lms)
|
||||
export PATH="$PATH:/home/den/.lmstudio/bin"
|
||||
export PATH="$PATH:/home/$(whoami)/.lmstudio/bin"
|
||||
# End of LM Studio CLI section
|
||||
export EDITOR=micro
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
|
||||
source /home/den/.config/sdgos/zshconfig.zsh
|
||||
source /home/$(whoami)/.config/sdgos/zshconfig.zsh
|
||||
|
||||
Reference in New Issue
Block a user