55 lines
1.6 KiB
Bash
55 lines
1.6 KiB
Bash
fpath+=$HOME/.zsh/pure
|
|
autoload -U promptinit; promptinit
|
|
zmodload zsh/nearcolor
|
|
zstyle ':prompt:pure:path' color 075
|
|
zstyle ':prompt:pure:prompt:success' color 214
|
|
zstyle ':prompt:pure:user' color 119
|
|
zstyle ':prompt:pure:host' color 119
|
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=13'
|
|
prompt pure
|
|
|
|
export PATH=$HOME/bin:/usr/local/bin:$HOME/.local/bin:$PATH
|
|
export ZSH="/home/lennartalff/.oh-my-zsh"
|
|
|
|
ZSH_THEME=""
|
|
|
|
# COMPLETION_WAITING_DOTS="true"
|
|
|
|
plugins=(git zsh-autosuggestions ssh-agent jump)
|
|
|
|
# only lazyily add ssh keys
|
|
zstyle :omz:plugins:ssh-agent lazy yes
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# Preferred editor for local and remote sessions
|
|
if [[ -n $SSH_CONNECTION ]]; then
|
|
export EDITOR='vim'
|
|
else
|
|
export EDITOR='nvim'
|
|
fi
|
|
|
|
alias reboot-windows="systemctl reboot --boot-loader-entry=windows.conf"
|
|
alias reboot-linux="systemctl reboot --boot-loader-entry=arch.conf"
|
|
alias zshrc="nvim ~/.zshrc"
|
|
|
|
alias mount-institut='kinit -kt "$HOME/keytabs/cta1233.keytab" cta1233@KERBEROS.TU-HARBURG.DE && mount /TUHH/Institut'
|
|
alias mount-lehre='kinit -kt "$HOME/keytabs/cta1233.keytab" cta1233@KERBEROS.TU-HARBURG.DE && mount /TUHH/Lehre'
|
|
|
|
# create terminfo for remote shell.
|
|
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
|
|
|
|
alias rosterm='find_or_create_rosterm'
|
|
|
|
alias git-delete-merged="git branch --merged main | grep -v '^[ *]*main$' | xargs git branch -d"
|
|
|
|
function find_or_create_rosterm() {
|
|
docker container inspect ros2-vim > /dev/null 2>&1
|
|
if [ $? -eq 0 ]; then
|
|
docker exec -it ros2-vim zsh
|
|
else
|
|
OLD_DIR="$(pwd)"
|
|
cd $HOME/Documents/ros2-vim && ./run
|
|
cd "$OLD_DIR"
|
|
fi
|
|
}
|