# Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=2500 SAVEHIST=2500 bindkey -e # End of lines configured by zsh-newuser-install # The following lines were added by compinstall #zstyle :compinstall filename '/home/casper/.zshrc' autoload -Uz compinit compinit # End of lines added by compinstall alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' alias ll='ls -lh' alias f='find . -iname' alias up='popd' alias myip='curl https://lancaster.casperlefantom.net/ipclient.php' alias torip='torsocks curl https://lancaster.casperlefantom.net/ipclient.php' alias beep='echo -e "\a"' alias screenoff='xset dpms force off' alias ltx='tmux ls' alias atx='tmux attach -t' alias addkey='gpg --keyserver hkp://keys.fedoraproject.org --recv-key' alias poezio='tmux -2 new-session -s poezio -n "poezio-debug by tor" "proxychains poezio --debug ~/.local/share/poezio/debug.log"' # Define personal variables if [ -f $HOME/bin/setvars ]; then . $HOME/bin/setvars fi # Print fedora linux logo in interactive shell if [ -n "$PS1" ]; then if which linux_logo >/dev/null 2>&1; then linux_logo -L 26 -F "Bienvenue sur l'hôte #H\n#V, Compilé #C \n#P #X #T, #R, #U" fi fi setopt hist_ignore_space setopt autocd setopt correctall autoload -U promptinit promptinit autoload -U colors colors HISTIGNORE="history:exit:logout" if [[ "$EUID" = "0" ]] || [[ "$USER" = 'root' ]]; then base_prompt="%{$fg_bold[red]%}%m %{$fg_bold[blue]%}%~ %{$fg_bold[red]%}%#%{$reset_color%}%{$fg[red]%}" else base_prompt="%{$fg_bold[green]%}%n%{$fg_bold[blue]%}@%{$fg_bold[yellow]%}%m%{$reset_color%} %{$fg_bold[blue]%}%~ %{$fg_bold[green]%}%#%{$reset_color%}%{$fg[green]%}" fi PS1="$base_prompt " PS2='suite-> '