Last active
June 20, 2025 15:49
-
-
Save nandordudas/efa1819f1a34eda244034b398f0565ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTFILE=~/.zsh_history | |
HISTSIZE=50000 | |
SAVEHIST=50000 | |
HIST_STAMPS="mm/dd/yyyy" | |
setopt HIST_VERIFY | |
setopt SHARE_HISTORY | |
setopt APPEND_HISTORY | |
setopt INC_APPEND_HISTORY | |
setopt HIST_IGNORE_DUPS | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_REDUCE_BLANKS | |
setopt HIST_IGNORE_SPACE | |
setopt HIST_NO_STORE | |
setopt HIST_EXPAND | |
setopt AUTO_CD | |
setopt GLOB_DOTS | |
setopt EXTENDED_GLOB | |
autoload -Uz compinit | |
compinit | |
plugins=(git) | |
### Added by Zinit's installer | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
### End of Zinit's installer chunk | |
zinit ice wait"1" lucid; zinit load zdharma-continuum/history-search-multi-word | |
zinit ice wait"0" lucid blockf; zinit light zsh-users/zsh-completions | |
zinit ice wait"0" lucid atload"_zsh_autosuggest_start"; zinit light zsh-users/zsh-autosuggestions | |
zinit ice wait"0" lucid; zinit light zdharma-continuum/fast-syntax-highlighting | |
zinit ice wait"1" lucid; zinit load agkozak/zsh-z | |
zinit snippet OMZL::completion.zsh | |
zinit snippet OMZL::git.zsh | |
zinit snippet OMZL::history.zsh | |
zinit snippet OMZL::key-bindings.zsh | |
zinit snippet OMZL::theme-and-appearance.zsh | |
zinit snippet OMZP::git | |
zinit ice wait"1" lucid; zinit light hlissner/zsh-autopair | |
zinit ice wait"1" lucid; zinit light MichaelAquilina/zsh-you-should-use | |
zinit snippet OMZ::plugins/git/git.plugin.zsh | |
zinit load 'zsh-users/zsh-history-substring-search' | |
zinit ice wait atload'_history_substring_search_config'; zinit ice depth=1; zinit load "NickKaramoff/ohmyzsh-key-bindings" | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
export FZF_DEFAULT_OPTS=" | |
--height 40% | |
--layout=reverse | |
--border | |
--inline-info | |
--preview 'bat --color=always --style=numbers --line-range=:500 {}' | |
--preview-window 'right:50%:wrap' | |
" | |
function z() { | |
if [ $# -gt 0 ]; then | |
zshz "$*" && return | |
fi | |
cd "$(zshz -l 2>&1 | | |
fzf --height 40% \ | |
--nth 2.. \ | |
--reverse \ | |
--inline-info \ | |
+s \ | |
--tac \ | |
--query "${*##-* }" \ | |
--preview 'echo {} | cut -d" " -f2- | xargs ls -la' | | |
sed 's/^[0-9,.]* *//')" | |
} | |
function cd() { | |
builtin cd "$@" && ls | |
} | |
function mkcd() { | |
mkdir -p "$1" && cd "$1" | |
} | |
function pkill() { | |
ps aux | grep "$1" | grep -v grep | awk '{print $2}' | xargs kill -9 | |
} | |
alias zshconfig='code --wait ~/.zshrc && exec zsh' | |
alias qfind='find . -name' | |
alias gg='cd ~/code/github/nandordudas' | |
alias ll='eza -laF --icons --git --group-directories-first' | |
alias la='eza -laF --icons --git' | |
alias ls='eza -F --icons --git' | |
alias lt='eza -T --icons --git-ignore' | |
alias l='eza -F --icons' | |
alias myip='curl ipinfo.io/ip' | |
alias ping='ping -c 5' | |
alias reload='exec zsh' | |
alias qfind='find . -name' | |
bindkey "^R" fzf-history-widget | |
bindkey "^T" fzf-file-widget | |
bindkey "^[[A" history-substring-search-up | |
bindkey "^[[B" history-substring-search-down | |
bindkey -v | |
bindkey "^?" backward-delete-char | |
export EDITOR='code --wait' | |
eval "$(starship init zsh)" | |
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=242' | |
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 | |
ZSH_AUTOSUGGEST_USE_ASYNC=1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt update --yes | |
sudo apt upgrade --yes | |
sudo chfn -f "Nandor Dudas" nandordudas | |
git config --global user.name "Nandor Dudas" | |
sudo apt install --yes git curl wget build-essential zsh gpg | |
zsh | |
chsh -s $(which zsh) | |
curl -sS https://starship.rs/install.sh | sh | |
bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/zdharma-continuum/zinit/HEAD/scripts/install.sh)" | |
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf | |
~/.fzf/install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
wsl --list --verbose | |
wsl --list --online | |
wsl --shutdown | |
$wslExportPath = "E:\WSL" | |
$distroName = "Ubuntu-24.04" | |
$futureName = "Ubuntu-25.04" | |
wsl --install -d $distroName | |
wsl --export $distroName "$wslExportPath\$futureName.tar" | |
wsl --unregister $distroName | |
wsl --import $futureName "$wslExportPath\$futureName" "$wslExportPath\$futureName.tar" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment