mirror of
https://github.com/agresdominik/dotfiles.git
synced 2026-04-21 18:05:50 +00:00
50 lines
1.1 KiB
Bash
Executable File
50 lines
1.1 KiB
Bash
Executable File
# Oh my zsh
|
|
export ZSH="$HOME/.oh-my-zsh"
|
|
ZSH_THEME="eastwood"
|
|
HIST_STAMPS="dd.mm.yyyy"
|
|
plugins=(git sudo)
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# -- Local Setup ---
|
|
|
|
# Preferred editor for local and remote sessions
|
|
if [[ -n $SSH_CONNECTION ]]; then
|
|
export EDITOR='nvim'
|
|
else
|
|
export EDITOR='nvim'
|
|
fi
|
|
|
|
# go
|
|
export PATH=$HOME/go/bin:$PATH
|
|
|
|
# pyenv
|
|
export PYENV_ROOT="$HOME/.pyenv"
|
|
export PATH="$PYENV_ROOT/bin:$PATH"
|
|
eval "$(pyenv init --path)"
|
|
eval "$(pyenv init -)"
|
|
|
|
# pipx
|
|
export PATH="$PATH:/Users/agres/.local/bin"
|
|
export PATH="$HOME/.local/bin:$PATH"
|
|
|
|
# bun
|
|
[ -s "/Users/agres/.bun/_bun" ] && source "/Users/agres/.bun/_bun"
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
|
|
# Alais: ls to run tree (without any flags)
|
|
unalias ls 2>/dev/null
|
|
ls() {
|
|
if [[ $# -eq 0 ]]; then
|
|
tree -L 1
|
|
else
|
|
command ls -G "$@"
|
|
fi
|
|
}
|
|
|
|
# Alias: list all modified and new files in current directory
|
|
alias lsgit='git status --porcelain | cut -c 4- | xargs ls -l'
|
|
|
|
# Alias: wifi to print qr code in terminal from file (device adjustable)
|
|
alias wifi='cat /Users/agres/Projects/python_lang/wifi_qr/wifi_password.txt | qr --asci'
|