37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
# shellcheck shell=bash
 | 
						|
# shellcheck disable=SC1090,SC1091,SC2034
 | 
						|
 | 
						|
# If not running interactively, don't do anything
 | 
						|
[[ $- != *i* ]] && return
 | 
						|
 | 
						|
# Workaround for SSH/Login sessions
 | 
						|
# https://github.com/systemd/systemd/issues/7641#issuecomment-680694017
 | 
						|
if [[ -o login || -f /usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator ]]; then
 | 
						|
	set -a
 | 
						|
	eval "$(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)"
 | 
						|
	set +a
 | 
						|
fi
 | 
						|
 | 
						|
autoload -Uz promptinit
 | 
						|
autoload -Uz compinit
 | 
						|
compinit -d "$XDG_CACHE_HOME/zsh/zcompdump-$ZSH_VERSION"
 | 
						|
promptinit
 | 
						|
 | 
						|
# Some zsh plugins
 | 
						|
[[ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]] && source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
 | 
						|
[[ -f /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh ]] && source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
 | 
						|
 | 
						|
bindkey '^[[H' beginning-of-line
 | 
						|
bindkey '^[[F' end-of-line
 | 
						|
bindkey "^[[3~" delete-char
 | 
						|
 | 
						|
# Zsh XDG history
 | 
						|
export HISTFILE="$XDG_STATE_HOME"/zsh/history
 | 
						|
 | 
						|
# Helpful tool: https://zsh-prompt-generator.site/
 | 
						|
# On github: https://github.com/k-yokoishi/zsh-prompt-generator
 | 
						|
PROMPT="[%n@%m %~]$ "
 | 
						|
RPROMPT="%?:%h | %*"
 | 
						|
 | 
						|
[[ -f $XDG_CONFIG_HOME/bash/.bash_aliases ]] && source "$XDG_CONFIG_HOME/bash/.bash_aliases"
 |