Skip to content

Instantly share code, notes, and snippets.

@kclejeune
Last active June 7, 2020 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kclejeune/7fcdb984eac9e2f1796d908745be313d to your computer and use it in GitHub Desktop.
Save kclejeune/7fcdb984eac9e2f1796d908745be313d to your computer and use it in GitHub Desktop.
rc
# System-wide .bashrc file for interactive bash(1) shells.
if [ -z "$PS1" ]; then
return
fi
PS1='\h:\W \u\$ '
# Make bash check its window size after a process completes
shopt -s checkwinsize
[ -r "/etc/bashrc_$TERM_PROGRAM" ] && . "/etc/bashrc_$TERM_PROGRAM"
# Nix
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# End Nix
if test -e /etc/static/bashrc; then . /etc/static/bashrc; fi
# /etc/zprofile: DO NOT EDIT -- this file has been generated automatically.
# This file is read for login shells.
# Only execute this file once per shell.
if [ -n "$__ETC_ZPROFILE_SOURCED" ]; then return; fi
__ETC_ZPROFILE_SOURCED=1
# Read system-wide modifications.
if test -f /etc/zprofile.local; then
source /etc/zprofile.local
fi
# /etc/zshrc: DO NOT EDIT -- this file has been generated automatically.
# This file is read for interactive shells.
# Only execute this file once per shell.
if [ -n "$__ETC_ZSHRC_SOURCED" -o -n "$NOSYSZSHRC" ]; then return; fi
__ETC_ZSHRC_SOURCED=1
# history defaults
SAVEHIST=2000
HISTSIZE=2000
HISTFILE=$HOME/.zsh_history
setopt HIST_IGNORE_DUPS SHARE_HISTORY HIST_FCNTL_LOCK
bindkey -e
# Tell zsh how to find installed completions
for p in ${(z)NIX_PROFILES}; do
fpath+=($p/share/zsh/site-functions $p/share/zsh/$ZSH_VERSION/functions $p/share/zsh/vendor-completions)
done
autoload -U promptinit && promptinit && prompt walters
autoload -U compinit && compinit
autoload -U bashcompinit && bashcompinit
# Read system-wide modifications.
if test -f /etc/zshrc.local; then
source /etc/zshrc.local
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment