Remove zsh dotfiles

This commit is contained in:
Santiago Lo Coco 2025-01-30 21:36:30 +01:00
parent b12fbf426e
commit 8fab74d69f
Signed by: slococo
GPG Key ID: F995EFC8B68B1ADF
4 changed files with 0 additions and 1882 deletions

View File

@ -1,96 +0,0 @@
#!/bin/sh
alias mpvgui='mpv --player-operation-mode=pseudo-gui'
alias wget='wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'
alias adb='HOME="$XDG_DATA_HOME"/android adb'
alias nvidia-settings='nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings'
alias ll='ls -l'
alias la='ls -al'
alias l='ls -CF'
alias lh='ls -lh'
alias vim='nvim'
alias svim='sudo nvim'
gacp() {
git add .
local var="$@"
if [ $(echo "$var" | wc -c) -gt 70 ]; then
echo "Maximum characters: 72"
return 1
fi
git commit -m "$var" -S
git push
}
gac() {
git add .
local var="$@"
if [ $(echo "$var" | wc -c) -gt 70 ]; then
echo "Maximum characters: 72"
return 1
fi
git commit -m "$var" -S
}
gcmp() {
local var="$@"
if [ $(echo "$var" | wc -c) -gt 70 ]; then
echo "Maximum characters: 72"
return 1
fi
git commit -m "$var" -S
git push
}
alias exiftcl='exiftool -all='
alias exift='exiftool'
alias upgraded='grep -i upgraded /var/log/pacman.log | tac | less'
alias installed='grep -i installed /var/log/pacman.log | tac | less'
alias mirrors='reflector --country Austria --protocol https --sort rate --save /etc/pacman.d/mirrorlist'
alias open='xdg-open $(fzf)'
alias o='xdg-open'
alias zat='zathura --fork'
alias trash-dir='cd $HOME/.local/share/Trash'
#alias fd='cd "$(dirname "$(fzf)")"'
alias val='valgrind --leak-check=full > valgrind.output 2>&1'
alias copy='xclip -selection clipboard'
function compile() {
sudo make clean && sudo make install
}
function rcomp() {
local file="${1//.rmd/}"
R -e "rmarkdown::render('$file.rmd', 'pdf_document')" && op $file.pdf
}
function fcd() {
local fd_options fzf_options target
fd_options=(
--hidden
--type directory
--exclude '.git'
)
fzf_options=(
--preview='tree -L 1 {}'
--bind=ctrl-space:toggle-preview
--exit-0
--keep-right
)
target="$(fd . "${1:-.}" "${fd_options[@]}" | fzf "${fzf_options[@]}")"
cd "$target" || return 1
}

File diff suppressed because it is too large Load Diff

View File

@ -1,90 +0,0 @@
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
HISTSIZE=10000000
SAVEHIST=10000000
HISTFILE=~/.cache/zsh/.histfile
ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;&'
export ZSH="/usr/share/oh-my-zsh"
ZSH_CUSTOM="/usr/share"
ZSH_THEME="zsh-theme-powerlevel10k/powerlevel10k"
# CASE_SENSITIVE="true"
# HYPHEN_INSENSITIVE="true"
# DISABLE_MAGIC_FUNCTIONS="true"
# DISABLE_AUTO_TITLE="true"
ENABLE_CORRECTION="true"
# COMPLETION_WAITING_DOTS="true"
# DISABLE_UNTRACKED_FILES_DIRTY="true"
plugins=(git vi-mode)
export ZSH_COMPDUMP="$XDG_CACHE_HOME"/zsh/zcompdump-"$HOST-$ZSH_VERSION"
source "$ZSH"/oh-my-zsh.sh
setopt HIST_SAVE_NO_DUPS
setopt HIST_IGNORE_ALL_DUPS
bindkey -v
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || [[ $1 = 'block' ]]; then
echo -ne '\e[1 q'
elif [[ ${KEYMAP} == main ]] || [[ ${KEYMAP} == viins ]] ||
[[ ${KEYMAP} = '' ]] || [[ $1 = 'beam' ]]; then
echo -ne '\e[5 q'
fi
}
zle -N zle-keymap-select
zle-line-init() {
zle -K viins
echo -ne "\e[5 q"
echoti smkx
}
zle -N zle-line-init
echo -ne '\e[5 q'
preexec() { echo -ne '\e[5 q' ;}
export VISUAL="nvim"
autoload -U edit-command-line; zle -N edit-command-line
bindkey '^E' edit-command-line
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[A" history-beginning-search-backward-end
bindkey "^[[B" history-beginning-search-forward-end
function zle-line-finish () { echoti rmkx }
zle -N zle-line-finish
source "$ZDOTDIR"/.aliases
[[ ! -f ${ZDOTDIR:-~}/.p10k.zsh ]] || source ${ZDOTDIR:-~}/.p10k.zsh
bindkey -s '^f' 'cd "$(dirname "$(fzf)")"\n'
bindkey -s '^o' 'xdg-open "$(fzf)"\n'
bracketed-paste() {
zle .$WIDGET && LBUFFER=${LBUFFER%$'\n'}
}
zle -N bracketed-paste
export MAMBA_EXE='/usr/bin/micromamba';
export MAMBA_ROOT_PREFIX="$HOME/.conda";
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE"
fi
unset __mamba_setup

View File

@ -1,66 +0,0 @@
#!/bin/sh
export EDITOR=nvim
export TERM=st-256color
export TERMINAL=st
export TERMINAL_PROG=st
export BROWSER=librewolf
export PAGER='nvimpager -p'
export CM_SELECTIONS="clipboard"
export CM_DEBUG=1
export CM_OUTPUT_CLIP=0
export CM_MAX_CLIPS=10000
export CM_IGNORE_WINDOW="Bitwarden|KeePass"
export _JAVA_AWT_WM_NONREPARENTING=1
export QT_QPA_PLATFORMTHEME=gtk2
export DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
export XDG_CONFIG_HOME="$HOME"/.config
export XDG_CACHE_HOME="$HOME"/.cache
export XDG_DATA_HOME="$HOME"/.local/share
export XDG_STATE_HOME="$HOME"/.local/state
export CM_DIR="$XDG_CACHE_HOME"/clipmenu
export GOPATH="$XDG_CONFIG_HOME"/go
export R_HOME_USER="$XDG_CONFIG_HOME"/R
export R_PROFILE_USER="$XDG_CONFIG_HOME"/R/.Rprofile
export R_LIBS_USER="$XDG_CONFIG_HOME"/R/library
export R_HISTFILE="$XDG_CONFIG_HOME"/R/.Rhistory
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
export XCURSOR_PATH=/usr/share/icons:"$XDG_DATA_HOME"/icons
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
export TERMINFO="$XDG_DATA_HOME"/terminfo
export TERMINFO_DIRS="$XDG_DATA_HOME"/terminfo:/usr/share/terminfo
export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME"/npm/npmrc
export NVM_DIR="$XDG_DATA_HOME"/nvm
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export PSQL_HISTORY="$XDG_DATA_HOME"/psql_history
#export ZSH="$XDG_DATA_HOME"/oh-my-zsh
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
export BUNDLE_USER_CONFIG="$XDG_CONFIG_HOME"/bundle
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME"/bundle
export BUNDLE_USER_PLUGIN="$XDG_DATA_HOME"/bundle
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
export DOCKER_CONFIG="$XDG_CONFIG_HOME"/docker
export MINIKUBE_HOME="$XDG_DATA_HOME"/minikube
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR"/gcr/ssh
export XINITRC="$XDG_CONFIG_HOME"/x11/xinitrc
export ANDROID_USER_HOME="$XDG_DATA_HOME"/android
export W3M_DIR="$XDG_DATA_HOME"/w3m
export PARALLEL_HOME="$XDG_CONFIG_HOME"/parallel
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export PATH="$HOME/.local/bin:$PATH"
if grep -q "i5" /proc/cpuinfo; then
export LAPTOP=""
fi
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
exec startx &> /dev/null
fi