1
0
Fork 0

Merge branch 'master' of i-am.nexus:nex/.dotfiles

This commit is contained in:
Nexus 2024-07-03 00:22:19 +01:00
commit e611720b96
Signed by: nex
GPG key ID: 0FA334385D0B689F
5 changed files with 19 additions and 32 deletions

View file

@ -6,4 +6,6 @@ if [ -f ~/.bashrc ]; then
fi fi
# User specific environment and startup programs # User specific environment and startup programs
. "$HOME/.cargo/env" if [ -f $HOME/.cargo/env ]; then
. "$HOME/.cargo/env"
fi

2
.gitignore vendored
View file

@ -1 +1,3 @@
**/.git **/.git
.ssh/id
.ssh/id*

6
.gitmodules vendored
View file

@ -1,6 +0,0 @@
[submodule ".oh-my-zsh/custom/plugins/zsh-autosuggestions"]
path = .oh-my-zsh/custom/plugins/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions
[submodule ".oh-my-zsh/custom/plugins/zsh-syntax-highlighting"]
path = .oh-my-zsh/custom/plugins/zsh-syntax-highlighting
url = https://github.com/zsh-users/zsh-syntax-highlighting

View file

@ -1,3 +1,2 @@
# Created by `pipx` on 2024-03-20 01:03:28 # Created by `pipx` on 2024-03-20 01:03:28
export PATH="$PATH:/home/nexus/.local/bin" export PATH="$PATH:$HOME/.local/bin"

36
.zshrc
View file

@ -1,26 +1,6 @@
export SUDO_PROMPT="$(tput bold setaf 7)[sudo]$(tput sgr0) $(tput setaf 6)password for$(tput sgr0) $(tput setaf 5)%p$(tput sgr0): " export SUDO_PROMPT="$(tput bold setaf 7)[sudo]$(tput sgr0) $(tput setaf 6)password for$(tput sgr0) $(tput setaf 5)%p$(tput sgr0): "
if [[ -d "$HOME/.local/bin" ]]; then
export PATH="$HOME/.local/bin:$PATH"
fi;
if [[ -d "$HOME/.cargo/bin" ]]; then
export PATH="$HOME/.cargo/bin:$PATH"
fi;
plugins=(git sudo rsync zsh-syntax-highlighting zsh-autosuggestions)
if [ -f $HOME/.pyenv/bin/pyenv ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="/home/nex/.local/bin:$PATH"
eval "$(pyenv init -)"
plugins+=(pyenv)
fi;
if [ -f /usr/bin/zoxide ] || [ -f /usr/local/bin/zoxide ]; then
eval "$(zoxide init zsh)"
fi;
export ZSH="$HOME/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
plugins=(git sudo rsync zsh-syntax-highlighting zsh-autosuggestions)
ZSH_THEME="agnoster" ZSH_THEME="agnoster"
HYPHEN_INSENSITIVE="true" HYPHEN_INSENSITIVE="true"
zstyle ':omz:update' mode auto # update automatically without asking zstyle ':omz:update' mode auto # update automatically without asking
@ -28,9 +8,19 @@ ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true" COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy" HIST_STAMPS="dd.mm.yyyy"
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
export LANG=en_GB.UTF-8 export LANG=en_GB.UTF-8
export EDITOR=vim export EDITOR=vim
export ARCHFLAGS="-arch x86_64" export ARCHFLAGS="-arch x86_64"
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
if [[ -d "$HOME/.local/bin" ]]; then
export PATH="$HOME/.local/bin:$PATH"
fi;
if [[ -d "$HOME/.cargo/bin" ]]; then
export PATH="$HOME/.cargo/bin:$PATH"
fi;
if [ -f $HOME/.pyenv/bin/pyenv ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims:$PATH"
eval "$(pyenv init -)"
plugins+=(pyenv)
fi;