ZSH files in .config folder
This commit is contained in:
2043
zsh/.zcompdump
Normal file
2043
zsh/.zcompdump
Normal file
File diff suppressed because it is too large
Load Diff
2040
zsh/.zcompdump-Thomas’s MacBook Pro-5.9
Normal file
2040
zsh/.zcompdump-Thomas’s MacBook Pro-5.9
Normal file
File diff suppressed because it is too large
Load Diff
BIN
zsh/.zcompdump.zwc
Normal file
BIN
zsh/.zcompdump.zwc
Normal file
Binary file not shown.
92
zsh/.zsh_history
Normal file
92
zsh/.zsh_history
Normal file
@@ -0,0 +1,92 @@
|
||||
: 1735721099:0;l
|
||||
: 1735721105:0;h
|
||||
: 1735721106:0;l
|
||||
: 1735721117:0;y
|
||||
: 1735721152:0;exec zsh
|
||||
: 1735721153:0;l
|
||||
: 1735721165:0;p10k configure
|
||||
: 1735721180:0;.zshrc
|
||||
: 1735721185:0;n .zshrc
|
||||
: 1735721196:0;n .zshenv
|
||||
: 1735721237:0;mv .zshrc .zshrc_backup
|
||||
: 1735721238:0;l
|
||||
: 1735721246:0;rm .zsh_history
|
||||
: 1735721247:0;l
|
||||
: 1735721248:0;ksadlfjk
|
||||
: 1735721249:0;klsdfjkl
|
||||
: 1735721250:0;l
|
||||
: 1735721257:0;exec zsh
|
||||
: 1735721258:0;l
|
||||
: 1735721265:0;rm .zshrc_backup
|
||||
: 1735721266:0;l
|
||||
: 1735721271:0;nz
|
||||
: 1735721275:0;y
|
||||
: 1735721438:0;source .zshrc
|
||||
: 1735721443:0;l
|
||||
: 1735721451:0;exec zsh
|
||||
: 1735721459:0;ne
|
||||
: 1735721469:0;n .zshenv
|
||||
: 1735721472:0;..
|
||||
: 1735721473:0;h
|
||||
: 1735721474:0;l
|
||||
: 1735721479:0;n .zshenv
|
||||
: 1735721569:0;source .zshenv
|
||||
: 1735721573:0;exec zsh
|
||||
: 1735721574:0;l
|
||||
: 1735721589:0;nz
|
||||
: 1735721623:0;exec zsh
|
||||
: 1735721624:0;l
|
||||
: 1735721635:0;nvim .zshenv
|
||||
: 1735721645:0;ll
|
||||
: 1735721651:0;y
|
||||
: 1735721657:0;nz
|
||||
: 1735721661:0;l
|
||||
: 1735721680:0;source .config/zsh/.zshrc
|
||||
: 1735721735:0;nz
|
||||
: 1735721753:0;l
|
||||
: 1735721772:0;n .zshenv
|
||||
: 1735721793:0;zoxide
|
||||
: 1735721797:0;nz
|
||||
: 1735721896:0;n .zshenv
|
||||
: 1735721941:0;l
|
||||
: 1735722093:0;y
|
||||
: 1735722123:0;pwd Dhamma\ Wheel.jpg
|
||||
: 1735722132:0;pwd Dhamma Wheel.jpg
|
||||
: 1735722134:0;l
|
||||
: 1735722144:0;pwd 'Dhamma Wheel.jpg'| xclip
|
||||
: 1735722150:0;pwd 'Dhamma Wheel.jpg'
|
||||
: 1735722157:0;pwd
|
||||
: 1735722281:0;l
|
||||
: 1735722353:0;y
|
||||
: 1735722410:0;l
|
||||
: 1735722411:0;y
|
||||
: 1735722433:0;l
|
||||
: 1735722453:0;y
|
||||
: 1735722572:0;l
|
||||
: 1735722579:0;y
|
||||
: 1735722622:0;l
|
||||
: 1735722645:0;y
|
||||
: 1735722671:0;l
|
||||
: 1735722673:0;y
|
||||
: 1735723245:0;l
|
||||
: 1735723250:0;y
|
||||
: 1735723410:0;l
|
||||
: 1735723414:0;y
|
||||
: 1735723448:0;exit
|
||||
: 1735723509:0;l
|
||||
: 1735723514:0;y
|
||||
: 1735723558:0;l
|
||||
: 1735724181:0;y
|
||||
: 1735724209:0;brew list
|
||||
: 1735727868:0;y
|
||||
: 1735729702:0;telnet towel.blinkenlights.nl
|
||||
: 1735729774:0;y
|
||||
: 1735761687:0;git diff plugins.lua
|
||||
: 1735761723:0;n plugins.lua
|
||||
: 1735761758:0;n
|
||||
: 1735761765:0;l
|
||||
: 1735761774:0;n keymaps.lua
|
||||
: 1735761786:0;n
|
||||
: 1735761793:0;n keymaps.lua
|
||||
: 1735761812:0;git commit
|
||||
: 1735761828:0;git add ../../zsh/
|
||||
57
zsh/.zshrc
Normal file
57
zsh/.zshrc
Normal file
@@ -0,0 +1,57 @@
|
||||
# Enable Powerlevel10k instant prompt {{{
|
||||
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
|
||||
POWERLEVEL9K_INSTANT_PROMPT=quiet
|
||||
# }}}
|
||||
|
||||
# Load Oh My Zsh {{{
|
||||
export ZSH="$XDG_CONFIG_HOME/.oh-my-zsh"
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
# }}}
|
||||
|
||||
# Theme and prompt {{{
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
source $XDG_CONFIG_HOME/p10k/.p10k.zsh
|
||||
# }}}
|
||||
|
||||
# ZSH Plugins {{{
|
||||
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
|
||||
eval "$(zoxide init zsh)"
|
||||
# }}}
|
||||
|
||||
# Keybindings {{{
|
||||
bindkey -v
|
||||
export KEYTIMEOUT=1
|
||||
# }}}
|
||||
|
||||
# Aliases and Functions {{{
|
||||
# Aliases
|
||||
alias h="cd ~"
|
||||
alias cl="clear"
|
||||
alias tnh="cd /Volumes/TNHOME"
|
||||
alias tng="cd /Volumes/TNGROUP"
|
||||
alias l='eza --color=always --icons -la --group-directories-first'
|
||||
alias n='nvim'
|
||||
alias ne='nvim ~/.zshenv'
|
||||
alias nz='nvim ~/.config/zsh/.zshrc'
|
||||
|
||||
# Quick access to notes
|
||||
alias nt='nvim ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Privat/TODO.md'
|
||||
alias ne='nvim ~/Library/Mobile\ Documents/iCloud~md~obsidian/Documents/Privat/Einkaufsliste.md'
|
||||
|
||||
# Custom Functions
|
||||
# Start yazi with y, and make it cd to pwd on quit
|
||||
function y() {
|
||||
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||
yazi "$@" --cwd-file="$tmp"
|
||||
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||
builtin cd -- "$cwd"
|
||||
fi
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
# }}}
|
||||
|
||||
# iTerm2 shell integration {{{
|
||||
source $XDG_CONFIG_HOME/iterm2/.iterm2_shell_integration.zsh
|
||||
# }}}
|
||||
119
zsh/.zshrc.pre-oh-my-zsh
Normal file
119
zsh/.zshrc.pre-oh-my-zsh
Normal file
@@ -0,0 +1,119 @@
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
# confirmations, etc.) must go above this block; everything else may go below.
|
||||
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
|
||||
|
||||
# If you come from bash you might have to change your $PATH.
|
||||
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
|
||||
|
||||
# Path to your Oh My Zsh installation.
|
||||
export ZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
# Set name of the theme to load --- if set to "random", it will
|
||||
# load a random theme each time Oh My Zsh is loaded, in which case,
|
||||
# to know which specific one was loaded, run: echo $RANDOM_THEME
|
||||
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
|
||||
ZSH_THEME="powerlevel10k/powerlevel10k"
|
||||
|
||||
# Set list of themes to pick from when loading at random
|
||||
# Setting this variable when ZSH_THEME=random will cause zsh to load
|
||||
# a theme from this variable instead of looking in $ZSH/themes/
|
||||
# If set to an empty array, this variable will have no effect.
|
||||
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
|
||||
|
||||
# Uncomment the following line to use case-sensitive completion.
|
||||
# CASE_SENSITIVE="true"
|
||||
|
||||
# Uncomment the following line to use hyphen-insensitive completion.
|
||||
# Case-sensitive completion must be off. _ and - will be interchangeable.
|
||||
# HYPHEN_INSENSITIVE="true"
|
||||
|
||||
# Uncomment one of the following lines to change the auto-update behavior
|
||||
# zstyle ':omz:update' mode disabled # disable automatic updates
|
||||
# zstyle ':omz:update' mode auto # update automatically without asking
|
||||
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
|
||||
|
||||
# Uncomment the following line to change how often to auto-update (in days).
|
||||
# zstyle ':omz:update' frequency 13
|
||||
|
||||
# Uncomment the following line if pasting URLs and other text is messed up.
|
||||
# DISABLE_MAGIC_FUNCTIONS="true"
|
||||
|
||||
# Uncomment the following line to disable colors in ls.
|
||||
# DISABLE_LS_COLORS="true"
|
||||
|
||||
# Uncomment the following line to disable auto-setting terminal title.
|
||||
# DISABLE_AUTO_TITLE="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.
|
||||
# You can also set it to another string to have that shown instead of the default red dots.
|
||||
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
|
||||
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
|
||||
# COMPLETION_WAITING_DOTS="true"
|
||||
|
||||
# Uncomment the following line if you want to disable marking untracked files
|
||||
# under VCS as dirty. This makes repository status check for large repositories
|
||||
# much, much faster.
|
||||
# DISABLE_UNTRACKED_FILES_DIRTY="true"
|
||||
|
||||
# Uncomment the following line if you want to change the command execution time
|
||||
# stamp shown in the history command output.
|
||||
# You can set one of the optional three formats:
|
||||
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
|
||||
# or set a custom format using the strftime function format specifications,
|
||||
# see 'man strftime' for details.
|
||||
# HIST_STAMPS="mm/dd/yyyy"
|
||||
|
||||
# Would you like to use another custom folder than $ZSH/custom?
|
||||
# ZSH_CUSTOM=/path/to/new-custom-folder
|
||||
|
||||
# Which plugins would you like to load?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
|
||||
# Example format: plugins=(rails git textmate ruby lighthouse)
|
||||
# Add wisely, as too many plugins slow down shell startup.
|
||||
plugins=( git
|
||||
z
|
||||
zsh-autosuggestions
|
||||
zsh-syntax-highlighting
|
||||
zsh-completion
|
||||
fzf)
|
||||
#Load z plugin
|
||||
. ~/z/z.sh
|
||||
|
||||
# User configuration
|
||||
|
||||
# export MANPATH="/usr/local/man:$MANPATH"
|
||||
|
||||
# You may need to manually set your language environment
|
||||
# export LANG=en_US.UTF-8
|
||||
|
||||
# Preferred editor for local and remote sessions
|
||||
# if [[ -n $SSH_CONNECTION ]]; then
|
||||
# export EDITOR='vim'
|
||||
# else
|
||||
# export EDITOR='nvim'
|
||||
# fi
|
||||
|
||||
# Compilation flags
|
||||
# export ARCHFLAGS="-arch $(uname -m)"
|
||||
|
||||
# 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 a top-level file in
|
||||
# the $ZSH_CUSTOM folder, with .zsh extension. Examples:
|
||||
# - $ZSH_CUSTOM/aliases.zsh
|
||||
# - $ZSH_CUSTOM/macos.zsh
|
||||
# For a full list of active aliases, run `alias`.
|
||||
#
|
||||
# Example aliases
|
||||
# alias zshconfig="mate ~/.zshrc"
|
||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||
|
||||
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||
1
zsh/.zshrc.pre-oh-my-zsh-2024-12-10_14-53-50
Normal file
1
zsh/.zshrc.pre-oh-my-zsh-2024-12-10_14-53-50
Normal file
@@ -0,0 +1 @@
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
Reference in New Issue
Block a user