Initial commit
This commit is contained in:
commit
5f78d74eca
178 changed files with 1952 additions and 0 deletions
3
.config/zsh/.zprofile
Normal file
3
.config/zsh/.zprofile
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
|
||||
exec Hyprland >/dev/null
|
||||
fi
|
23
.config/zsh/.zshrc
Executable file
23
.config/zsh/.zshrc
Executable file
|
@ -0,0 +1,23 @@
|
|||
HISTSIZE=2000
|
||||
SAVEHIST=2000
|
||||
HIST_STAMPS="yyyy-mm-dd"
|
||||
|
||||
alias sudo='env PATH="${PATH}" doas'
|
||||
alias npm='env PATH="${PATH}" bun'
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
bindkey '^[[A' history-substring-search-up
|
||||
bindkey '^[[B' history-substring-search-down
|
||||
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|
Loading…
Add table
Add a link
Reference in a new issue