Compare commits

...

2 commits

Author SHA1 Message Date
Felix Buehler
5a4a148887 shell/alias: update nixpkgs-build to use nom as default
Some checks failed
Build / Lint Code Base (push) Has been cancelled
CI / build (push) Has been cancelled
2026-01-11 20:53:18 +01:00
Felix Buehler
3a0c99707b zsh: init
inspired by https://github.com/bebehei/df/blob/master/zsh/zshrc
2026-01-11 20:22:05 +01:00
7 changed files with 70 additions and 1 deletions

9
.gitmodules vendored
View file

@ -52,3 +52,12 @@
[submodule "vim/start/vim-polyglot"]
path = vim/start/vim-polyglot
url = https://github.com/sheerun/vim-polyglot.git
[submodule "zsh/zsh-autosuggestions"]
path = zsh/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions.git
[submodule "zsh/zsh-syntax-highlighting"]
path = zsh/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting.git
[submodule "zsh/oh-my-zsh"]
path = zsh/oh-my-zsh
url = https://github.com/ohmyzsh/ohmyzsh.git

View file

@ -56,6 +56,10 @@
~/.wgetrc: wget/wgetrc
~/.config/yay/config.json: yay/config.json
~/.Xresources: i3/Xresources
~/.zshrc: zsh/zshrc
~/.oh-my-zsh: zsh/oh-my-zsh
~/.zsh-syntax-highlighting: zsh/zsh-syntax-highlighting
~/.zsh-autosuggestions: zsh/zsh-autosuggestions
# graphic
- link:

View file

@ -97,7 +97,21 @@ alias aur-update='yay -Syua'
# NIX:
alias nix-list-results='ls -l /nix/var/nix/gcroots/auto/'
alias nixpkgs-build='nix-build . -A'
nixpkgs-build() {
if [[ $# -lt 1 ]]; then
echo "Usage: nixpkgs-build <package> [parameters...]"
return 1
fi
local pkg="$1"
shift
if command -v nom >/dev/null 2>&1; then
nom build ".#$pkg" "$@"
else
nix build ".#$pkg" "$@"
fi
}
alias nixpkgs-review-fast-merge='nixpkgs-review post-result && nixpkgs-review approve && nixpkgs-review merge'
# DOTFILES:

1
zsh/oh-my-zsh Submodule

@ -0,0 +1 @@
Subproject commit 35068db8373917a23eb9e3dabeb6596348e6534c

@ -0,0 +1 @@
Subproject commit 85919cd1ffa7d2d5412f6d3fe437ebdbeeec4fc5

@ -0,0 +1 @@
Subproject commit 5eb677bb0fa9a3e60f0eff031dc13926e093df92

39
zsh/zshrc Normal file
View file

@ -0,0 +1,39 @@
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
fpath=( ~/.zcomplete "${fpath[@]}" )
ZSH_THEME=""
CASE_SENSITIVE="true"
DISABLE_AUTO_UPDATE="true"
DISABLE_LS_COLORS="false"
DISABLE_AUTO_TITLE="true"
ENABLE_CORRECTION="false"
COMPLETION_WAITING_DOTS="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
plugins=(
colored-man-pages
common-aliases
sudo
)
source $ZSH/oh-my-zsh.sh
alias reload=". ~/.zshrc"
ZSH_AUTOSUGGEST_STRATEGY=(history)
source ~/.zsh-autosuggestions/zsh-autosuggestions.zsh
# Ctrl+Space
bindkey '^ ' autosuggest-accept
source ~/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.profile.d/load
if type kubectl &>/dev/null; then
source <(kubectl completion zsh)
fi
RPROMPT='[%*]'