Skip to content

Instantly share code, notes, and snippets.

@antonijn
Created October 5, 2022 08:06
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 antonijn/a8503618288f54a404f456a9014d9d3d to your computer and use it in GitHub Desktop.
Save antonijn/a8503618288f54a404f456a9014d9d3d to your computer and use it in GitHub Desktop.
My bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:$HOME/code/tools/text-tools/bin" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$HOME/code/tools/text-tools/bin:$PATH"
fi
export PATH
OS_VERSION=`< /etc/os-release grep -Po 'PLATFORM_ID="[^:]*:\K[^"]*'`
PS1="\[\e[1m\]\u@\h ($OS_VERSION) \w\n\$\[\e[0m\] "
alias l='ls'
alias s='ls'
alias sl='ls'
export EDITOR='nvim'
export GOPATH="$HOME/code/go"
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
if [ -d ~/.bashrc.d ]; then
for rc in ~/.bashrc.d/*; do
if [ -f "$rc" ]; then
. "$rc"
fi
done
fi
unset rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment