small updates & switched to zen browser
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -10,20 +10,19 @@
|
||||
# Override aliases here in '$ZDOTDIR/.zshrc' (already set in .zshenv)
|
||||
|
||||
# # Helpful aliases
|
||||
# alias c='clear' # clear terminal
|
||||
# alias l='eza -lh --icons=auto' # long list
|
||||
# alias ls='eza -1 --icons=auto' # short list
|
||||
# alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
|
||||
# alias ld='eza -lhD --icons=auto' # long list dirs
|
||||
# alias lt='eza --icons=auto --tree' # list folder as tree
|
||||
# alias un='$aurhelper -Rns' # uninstall package
|
||||
# alias up='$aurhelper -Syu' # update system/package/aur
|
||||
# alias pl='$aurhelper -Qs' # list installed package
|
||||
# alias pa='$aurhelper -Ss' # list available package
|
||||
alias pc='$aurhelper -Sc' # remove unused cache
|
||||
alias po='$aurhelper -Qtdq | $aurhelper -Rns -' # remove unused packages, also try > $aurhelper -Qqd | $aurhelper -Rsu --print -
|
||||
# alias vc='code' # gui code editor
|
||||
# alias fastfetch='fastfetch --logo-type kitty'
|
||||
alias c='clear' # clear terminal
|
||||
alias l='eza -lh --icons=auto' # long list
|
||||
alias ls='eza -1 --icons=auto' # short list
|
||||
alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
|
||||
alias ld='eza -lhD --icons=auto' # long list dirs
|
||||
alias lt='eza --icons=auto --tree' # list folder as tree
|
||||
alias un='paru -Rns' # uninstall package
|
||||
alias up='paru -Syu' # update system/package/aur
|
||||
alias pl='paru -Qs' # list installed package
|
||||
alias pa='paru -Ss' # list available package
|
||||
alias pc='paru -Sc' # remove unused cache
|
||||
alias po='paru -Qtdq | paru -Rns -' # remove unused packages, also try > paru -Qqd | paru -Rsu --print -
|
||||
alias fastfetch='fastfetch --logo-type kitty'
|
||||
alias l='eza -1h --icons=auto --sort=name --group-directories-first' # long list
|
||||
alias ls='eza -l --icons=auto --sort=name --group-directories-first' # short list
|
||||
alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
|
||||
@@ -61,6 +60,7 @@ alias wifi="nmcli d wifi show-password | grep 'Password' | awk -F': ' '{ print \
|
||||
alias pivpn="wg-quick up laptop"
|
||||
alias config='git --git-dir=/home/elleoma/.config --work-tree=/home/elleoma'
|
||||
alias wp='git --git-dir=$HOME/shit/wallpapers/.wp --work-tree=$HOME/shit/wallpapers'
|
||||
alias killwayvnc='killall wayvnc'
|
||||
|
||||
# git aliases
|
||||
alias gs='git status '
|
||||
|
@@ -15,6 +15,6 @@ if ! . "$ZDOTDIR/conf.d/hyde/env.zsh"; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
if [ -t 1 ] && [ -f "$ZDOTDIR/conf.d/hyde/terminal.zsh" ]; then
|
||||
if [[ $- == *i* ]] && [ -f "$ZDOTDIR/conf.d/hyde/terminal.zsh" ]; then
|
||||
. "$ZDOTDIR/conf.d/hyde/terminal.zsh" || echo "Error: Could not source $ZDOTDIR/conf.d/hyde/terminal.zsh"
|
||||
fi
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#! ╚═════╝░░╚════╝░ ╚═╝░░╚══╝░╚════╝░░░░╚═╝░░░ ╚══════╝╚═════╝░╚═╝░░░╚═╝░░░
|
||||
|
||||
# Hyde's Shell Environment Initialization Script
|
||||
# If users used UWSM, uwsm will override any variables set anywhere in you shell configurations
|
||||
# If users used UWSM, uwsm will override any variables set anywhere in your shell configurations
|
||||
|
||||
# Basic PATH prepending (user local bin)
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
@@ -38,6 +38,10 @@ LESSHISTFILE="${LESSHISTFILE:-/tmp/less-hist}"
|
||||
# Application config files
|
||||
PARALLEL_HOME="$XDG_CONFIG_HOME/parallel"
|
||||
SCREENRC="$XDG_CONFIG_HOME/screen/screenrc"
|
||||
TERMINFO="$XDG_DATA_HOME"/terminfo
|
||||
TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
|
||||
WGETRC="${XDG_CONFIG_HOME}/wgetrc"
|
||||
PYTHON_HISTORY="$XDG_STATE_HOME/python_history"
|
||||
|
||||
# Export all variables
|
||||
export PATH \
|
||||
|
@@ -12,17 +12,17 @@
|
||||
# And ensures that we have an obstruction-free .zshrc file
|
||||
# This also ensures that the proper HyDE $ENVs are loaded
|
||||
|
||||
function _load_common() {
|
||||
|
||||
function _load_functions() {
|
||||
# Load all custom function files // Directories are ignored
|
||||
for file in "${ZDOTDIR:-$HOME/.config/zsh}/functions/"*.zsh; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
}
|
||||
|
||||
function _load_completions() {
|
||||
for file in "${ZDOTDIR:-$HOME/.config/zsh}/completions/"*.zsh; do
|
||||
[ -r "$file" ] && source "$file"
|
||||
done
|
||||
|
||||
}
|
||||
|
||||
function _dedup_zsh_plugins {
|
||||
@@ -53,8 +53,8 @@ function _defer_omz_after_prompt_before_input() {
|
||||
fpath=($ZDOTDIR/completions "${fpath[@]}")
|
||||
|
||||
_load_compinit
|
||||
|
||||
_load_common
|
||||
_load_functions
|
||||
_load_completions
|
||||
|
||||
# zsh-autosuggestions won't work on first prompt when deferred
|
||||
if typeset -f _zsh_autosuggest_start >/dev/null; then
|
||||
@@ -152,19 +152,18 @@ function _load_compinit() {
|
||||
|
||||
function _load_prompt() {
|
||||
# Try to load prompts immediately
|
||||
if ! source ${ZDOTDIR}/prompt.zsh > /dev/null 2>&1; then
|
||||
[[ -f $ZDOTDIR/conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR/conf.d/hyde/prompt.zsh
|
||||
fi
|
||||
|
||||
if ! source ${ZDOTDIR}/prompt.zsh > /dev/null 2>&1; then
|
||||
[[ -f $ZDOTDIR/conf.d/hyde/prompt.zsh ]] && source $ZDOTDIR/conf.d/hyde/prompt.zsh
|
||||
fi
|
||||
}
|
||||
|
||||
#? Override this environment variable in ~/.zshrc
|
||||
# Override this environment variable in ~/.zshrc
|
||||
# cleaning up home folder
|
||||
# ZSH Plugin Configuration
|
||||
|
||||
HYDE_ZSH_DEFER="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's deferred Zsh loading.
|
||||
HYDE_ZSH_PROMPT="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's prompt customization.
|
||||
HYDE_ZSH_NO_PLUGINS="1" #Unset this variable in $ZDOTDIR/user.zsh to disable HyDE's deferred Zsh loading.
|
||||
HYDE_ZSH_NO_PLUGINS="0" #Set this variable to "1" in $ZDOTDIR/user.zsh to disable HyDE's Zsh plugin loading.
|
||||
|
||||
ZSH_AUTOSUGGEST_STRATEGY=(history completion)
|
||||
|
||||
@@ -192,7 +191,7 @@ fi
|
||||
_load_compinit
|
||||
|
||||
|
||||
if [[ ${HYDE_ZSH_NO_PLUGINS} == "1" ]]; then
|
||||
if [[ ${HYDE_ZSH_NO_PLUGINS} != "1" ]]; then
|
||||
# Deduplicate omz plugins()
|
||||
_dedup_zsh_plugins
|
||||
|
||||
@@ -202,11 +201,17 @@ if [[ ${HYDE_ZSH_NO_PLUGINS} == "1" ]]; then
|
||||
else
|
||||
[[ -r $ZSH/oh-my-zsh.sh ]] && source $ZSH/oh-my-zsh.sh
|
||||
_load_prompt
|
||||
_load_common
|
||||
|
||||
_load_functions
|
||||
_load_completions
|
||||
fi
|
||||
fi
|
||||
else
|
||||
_load_prompt
|
||||
_load_functions
|
||||
_load_completions
|
||||
|
||||
chmod +r $ZDOTDIR/.zshrc # Make sure .zshrc is readable
|
||||
[[ -r $ZDOTDIR/.zshrc ]] && source $ZDOTDIR/.zshrc
|
||||
fi
|
||||
|
||||
alias c='clear' \
|
||||
in='${PM_COMMAND[@]} install' \
|
||||
|
@@ -1,5 +1,5 @@
|
||||
if command -v "bat" &>/dev/null; then
|
||||
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain --paging=never --color always'
|
||||
#! alias -g -- h='-h 2>&1 | bat --language=help --style=plain --paging=never --color always' # <--- this is discouraged! This conflicts with posix -h test operator
|
||||
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain --paging=never --color always'
|
||||
alias cat='bat --style=plain --paging=never --color auto'
|
||||
fi
|
||||
|
@@ -72,6 +72,48 @@ _fuzzy_edit_search_file() {
|
||||
fi
|
||||
}
|
||||
|
||||
_fuzzy_search_cmd_history() {
|
||||
local selected
|
||||
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases noglob nobash_rematch 2> /dev/null
|
||||
|
||||
local fzf_query=""
|
||||
if [[ -n "$1" ]]; then
|
||||
fzf_query="--query=${(qqq)1}"
|
||||
else
|
||||
fzf_query="--query=${(qqq)LBUFFER}"
|
||||
fi
|
||||
|
||||
if zmodload -F zsh/parameter p:{commands,history} 2>/dev/null && (( ${+commands[perl]} )); then
|
||||
selected="$(printf '%s\t%s\000' "${(kv)history[@]}" |
|
||||
perl -0 -ne 'if (!$seen{(/^\s*[0-9]+\**\t(.*)/s, $1)}++) { s/\n/\n\t/g; print; }' |
|
||||
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '\t↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} $fzf_query +m --read0") \
|
||||
FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd))"
|
||||
else
|
||||
selected="$(fc -rl 1 | __fzf_exec_awk '{ cmd=$0; sub(/^[ \t]*[0-9]+\**[ \t]+/, "", cmd); if (!seen[cmd]++) print $0 }' |
|
||||
FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --wrap-sign '\t↳ ' --highlight-line ${FZF_CTRL_R_OPTS-} $fzf_query +m") \
|
||||
FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd))"
|
||||
fi
|
||||
local ret=$?
|
||||
if [ -n "$selected" ]; then
|
||||
if [[ $(__fzf_exec_awk '{print $1; exit}' <<< "$selected") =~ ^[1-9][0-9]* ]]; then
|
||||
zle vi-fetch-history -n $MATCH
|
||||
else
|
||||
LBUFFER="$selected"
|
||||
fi
|
||||
fi
|
||||
return $ret
|
||||
}
|
||||
|
||||
|
||||
|
||||
alias ffec='_fuzzy_edit_search_file_content' \
|
||||
ffcd='_fuzzy_change_directory' \
|
||||
ffe='_fuzzy_edit_search_file'
|
||||
ffe='_fuzzy_edit_search_file' \
|
||||
ffch='_fuzzy_search_cmd_history'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@@ -27,8 +27,9 @@ plugins=(
|
||||
# HYDE_ZSH_OMZ_DEFER=1 # Set to 1 to defer loading of oh-my-zsh plugins ONLY if prompt is already loaded
|
||||
|
||||
# Aliases
|
||||
alias l='eza -1h --icons=auto --sort=name --group-directories-first' # long list
|
||||
alias ls='eza -l --icons=auto --sort=name --group-directories-first' # short list
|
||||
alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
|
||||
alias дд='eza -lha --icons=auto --sort=name --group-directories-first' # sometimes i forget to change keyboard layout
|
||||
|
||||
# alias l='eza -1h --icons=auto --sort=name --group-directories-first' # long list
|
||||
# alias ls='eza -l --icons=auto --sort=name --group-directories-first' # short list
|
||||
# alias ll='eza -lha --icons=auto --sort=name --group-directories-first' # long list all
|
||||
# alias дд='eza -lha --icons=auto --sort=name --group-directories-first' # sometimes i forget to change keyboard layout
|
||||
# alias startwayvnc='wayvnc 100.108.196.99 > /dev/null 2>&1 & | disown'
|
||||
# alias killwayvnc='killall wayvnc'
|
||||
|
Reference in New Issue
Block a user