Massive change to the structure of the tree.
This commit is contained in:
parent
2fc5f7a514
commit
c71934ed3b
137 changed files with 51 additions and 266 deletions
|
@ -1,39 +0,0 @@
|
||||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
|
||||||
# The parser is also very primitive, and not human-friendly.
|
|
||||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
|
||||||
sort_key=39
|
|
||||||
sort_direction=1
|
|
||||||
tree_sort_key=0
|
|
||||||
tree_sort_direction=1
|
|
||||||
hide_kernel_threads=1
|
|
||||||
hide_userland_threads=1
|
|
||||||
shadow_other_users=1
|
|
||||||
show_thread_names=0
|
|
||||||
show_program_path=1
|
|
||||||
highlight_base_name=0
|
|
||||||
highlight_megabytes=1
|
|
||||||
highlight_threads=1
|
|
||||||
highlight_changes=0
|
|
||||||
highlight_changes_delay_secs=5
|
|
||||||
find_comm_in_cmdline=1
|
|
||||||
strip_exe_from_cmdline=1
|
|
||||||
show_merged_command=0
|
|
||||||
tree_view=1
|
|
||||||
tree_view_always_by_pid=1
|
|
||||||
header_margin=1
|
|
||||||
detailed_cpu_time=0
|
|
||||||
cpu_count_from_one=0
|
|
||||||
show_cpu_usage=1
|
|
||||||
show_cpu_frequency=0
|
|
||||||
show_cpu_temperature=0
|
|
||||||
degree_fahrenheit=0
|
|
||||||
update_process_names=0
|
|
||||||
account_guest_in_cpu_meter=0
|
|
||||||
color_scheme=0
|
|
||||||
enable_mouse=1
|
|
||||||
delay=15
|
|
||||||
left_meters=AllCPUs Memory Swap
|
|
||||||
left_meter_modes=1 1 1
|
|
||||||
right_meters=Tasks LoadAverage Uptime
|
|
||||||
right_meter_modes=2 2 2
|
|
||||||
hide_function_bar=0
|
|
|
@ -1,11 +0,0 @@
|
||||||
skip_global_compinit=1
|
|
||||||
export XDG_CACHE_HOME=/tmp/${USER}-cache
|
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
|
||||||
export XDG_DATA_HOME=$HOME/.local/share
|
|
||||||
export XDG_STATE_HOME=$HOME/.local/state
|
|
||||||
export HISTSIZE=10000
|
|
||||||
export SAVEHIST=$HISTSIZE
|
|
||||||
export HISTFILE=$XDG_DATA_HOME/zsh/history
|
|
||||||
# if test -z "$XDG_RUNTIME_DIR"; then
|
|
||||||
# export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
|
|
||||||
# fi
|
|
|
@ -1,69 +0,0 @@
|
||||||
if test -z "$XDG_RUNTIME_DIR"; then
|
|
||||||
export XDG_RUNTIME_DIR=$(mktemp -d /tmp/$(id -u)-runtime-dir.XXX)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# prepare directories
|
|
||||||
mkdir -p $XDG_CACHE_HOME/zsh
|
|
||||||
mkdir -p $XDG_DATA_HOME/zsh
|
|
||||||
|
|
||||||
# global exports and options
|
|
||||||
setopt HIST_IGNORE_ALL_DUPS
|
|
||||||
setopt HIST_SAVE_NO_DUPS
|
|
||||||
setopt HIST_REDUCE_BLANKS
|
|
||||||
setopt SHARE_HISTORY
|
|
||||||
setopt INC_APPEND_HISTORY
|
|
||||||
|
|
||||||
# set path
|
|
||||||
path=(~/.local/bin "$path[@]")
|
|
||||||
|
|
||||||
# source configuration
|
|
||||||
source $ZDOTDIR/aliases.zsh
|
|
||||||
source $ZDOTDIR/cleanhome.zsh
|
|
||||||
source $ZDOTDIR/keys.zsh
|
|
||||||
source $ZDOTDIR/ssh.zsh
|
|
||||||
source $ZDOTDIR/fzf.zsh
|
|
||||||
|
|
||||||
# source modules
|
|
||||||
source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
|
||||||
source ~/.local/git/zsh_modules/wd/wd.plugin.zsh
|
|
||||||
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
|
||||||
|
|
||||||
# set fpath
|
|
||||||
fpath=(~/.local/git/zsh_modules/wd $fpath)
|
|
||||||
|
|
||||||
# theme and colors
|
|
||||||
if [[ $(command -v vivid) ]]; then
|
|
||||||
export LS_COLORS=$(vivid generate molokai)
|
|
||||||
else
|
|
||||||
unset LS_COLORS
|
|
||||||
fi
|
|
||||||
tabs 2
|
|
||||||
export STARSHIP_CACHE="$XDG_CACHE_HOME"/starship
|
|
||||||
eval "$(STARSHIP_CACHE="$XDG_CACHE_HOME"/starship starship init zsh)"
|
|
||||||
|
|
||||||
# completion
|
|
||||||
zstyle ':completion:*' menu select
|
|
||||||
zstyle ':completion:*' list-colors ''
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
|
||||||
if [ ! -e $XDG_DATA_HOME/zsh/zcompdump.zwc ]; then
|
|
||||||
autoload -Uz zrecompile
|
|
||||||
zrecompile -p -R $XDG_DATA_HOME/zsh/zcompdump
|
|
||||||
fi
|
|
||||||
if [[ -n $XDG_DATA_HOME/zsh/zcompdump(#qN.mh+24) ]]; then
|
|
||||||
compinit -d $XDG_DATA_HOME/zsh/zcompdump
|
|
||||||
else
|
|
||||||
compinit -C -d $XDG_DATA_HOME/zsh/zcompdump
|
|
||||||
fi
|
|
||||||
|
|
||||||
# quick note functionality
|
|
||||||
if [[ -f ~/.note ]]; then
|
|
||||||
echo
|
|
||||||
cat ~/.note
|
|
||||||
echo
|
|
||||||
fi
|
|
||||||
|
|
||||||
# local settings
|
|
||||||
if [[ -f ~/.local/config/zsh ]]; then
|
|
||||||
source ~/.local/config/zsh
|
|
||||||
fi
|
|
|
@ -1,58 +0,0 @@
|
||||||
LOCAL_GIT_DIR=${HOME}/.local/git
|
|
||||||
|
|
||||||
alias ga='git add .; git commit --no-edit --amend; git push --force-with-lease'
|
|
||||||
alias gae='git add .; git commit --amend; git push --force-with-lease'
|
|
||||||
alias less='less -R'
|
|
||||||
alias lg="lazygit"
|
|
||||||
alias qt="dbus-run-session qtile start -b wayland"
|
|
||||||
|
|
||||||
if [[ $(command -v bat) ]]; then
|
|
||||||
alias cat='bat -pp --color=always --tabs=2 --theme=Monokai\ Extended\ Bright'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $(command -v eza) ]]; then
|
|
||||||
alias ls='eza --git --octal-permissions --no-permissions --group-directories-first'
|
|
||||||
alias ll='eza --git --octal-permissions --no-permissions --group-directories-first -l'
|
|
||||||
else
|
|
||||||
case $(uname -s) in;
|
|
||||||
Darwin) alias ls='ls -G';;
|
|
||||||
Linux) alias ls='ls --color';;
|
|
||||||
esac
|
|
||||||
alias ll='ls -l'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $(command -v fd) ]]; then
|
|
||||||
if [[ -f ~/.local/config/fd ]]; then
|
|
||||||
alias fd='fd -H -L --ignore-file ~/.local/config/fd'
|
|
||||||
else
|
|
||||||
alias fd='fd -H -L'
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $(command -v nvim) ]; then
|
|
||||||
export EDITOR=nvim
|
|
||||||
export MANPAGER="nvim +Man!"
|
|
||||||
alias vim=nvim
|
|
||||||
alias vimdiff="nvim -d"
|
|
||||||
elif [ $(command -v vim) ] ; then
|
|
||||||
export EDITOR=vim
|
|
||||||
else
|
|
||||||
export EDITOR=vi
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $(command -v rg) ]]; then
|
|
||||||
alias grep='rg -i'
|
|
||||||
else
|
|
||||||
alias grep='grep --color'
|
|
||||||
fi
|
|
||||||
|
|
||||||
function ud() {
|
|
||||||
for i in ${LOCAL_GIT_DIR}/dotfiles ${LOCAL_GIT_DIR}/zsh_modules/*; do git -C ${i} pull; done
|
|
||||||
nvim -c "lua require('lazy').sync({wait = true})"
|
|
||||||
}
|
|
||||||
function upgrade() {
|
|
||||||
case $(lsb_release -si) in
|
|
||||||
Gentoo) eix-sync && eix-update && emerge -avuNDU @world ;;
|
|
||||||
VoidLinux) xbps-install -Su && xbps-remove -RoO && xlocate -S ;;
|
|
||||||
esac
|
|
||||||
}
|
|
|
@ -1,3 +0,0 @@
|
||||||
export GNUPGHOME="$XDG_DATA_HOME/gnupg"
|
|
||||||
export LESSHISTFILE='/dev/null'
|
|
||||||
mkdir -p ~/.local/share/tig
|
|
|
@ -1,17 +0,0 @@
|
||||||
if [[ $(command -v fzf) ]]; then
|
|
||||||
case $(lsb_release -si) in
|
|
||||||
Gentoo) source /usr/share/zsh/site-functions/_fzf ;;
|
|
||||||
VoidLinux) source /usr/share/fzf/completion.zsh ;;
|
|
||||||
esac
|
|
||||||
source /usr/share/fzf/key-bindings.zsh
|
|
||||||
export FZF_DEFAULT_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
|
|
||||||
export FZF_CTRL_T_COMMAND='fd -H -L --ignore-file ~/.local/config/fd'
|
|
||||||
export FZF_DEFAULT_OPTS="--multi -e --ansi --layout=reverse --preview='bat --color=always --tabs=2 --style=plain --theme=Monokai\ Extended\ Bright {}'"
|
|
||||||
export FZF_CTRL_R_OPTS="-e --ansi --layout=reverse --preview=''"
|
|
||||||
_fzf_compgen_path() {
|
|
||||||
fd -H -L --ignore-file ~/.local/config/fd . "$1"
|
|
||||||
}
|
|
||||||
_fzf_compgen_dir() {
|
|
||||||
fd -H -L --ignore-file ~/.local/config/fd --type d . "$1"
|
|
||||||
}
|
|
||||||
fi
|
|
|
@ -1,19 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
# variables
|
|
||||||
LOCAL_BIN_DIR=${HOME}/.local/bin
|
|
||||||
XDG_CONFIG_HOME=${HOME}/.config
|
|
||||||
|
|
||||||
# prepare local dirs
|
|
||||||
mkdir -p ${XDG_CONFIG_HOME} ${LOCAL_BIN_DIR}
|
|
||||||
|
|
||||||
# install configs
|
|
||||||
for i in _configs/*; do
|
|
||||||
rm -rf ${XDG_CONFIG_HOME}/$(basename $i)
|
|
||||||
ln -sf $(pwd)/${i} ${XDG_CONFIG_HOME}
|
|
||||||
done
|
|
||||||
|
|
||||||
# install scripts
|
|
||||||
for i in _scripts/*; do
|
|
||||||
ln -sf $(pwd)/${i} ${LOCAL_BIN_DIR}
|
|
||||||
done
|
|
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 229 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue