From f048218a79cf49af2e8f5a489088e6984654f0c4 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Thu, 30 Mar 2023 17:10:52 +0100 Subject: [PATCH] remove profile and shrc files --- .bashrc | 58 ------------------------------------------------------ .profile | 9 --------- .zshrc | 60 -------------------------------------------------------- 3 files changed, 127 deletions(-) delete mode 100644 .bashrc delete mode 100644 .profile delete mode 100644 .zshrc diff --git a/.bashrc b/.bashrc deleted file mode 100644 index 2838739e..00000000 --- a/.bashrc +++ /dev/null @@ -1,58 +0,0 @@ -# vim: ft=sh -# Source global definitions -if [ -f /etc/bashrc ]; then - . /etc/bashrc -fi - -# set PATH so it includes user's private bin if it exists -grep "$HOME/.local/bin" "$PATH" > /dev/null 2>&1 || export PATH="$HOME/.local/bin:$PATH" - -# set PATH so it includes homebrew bin directories if they exist -HOMEBREW_BIN="/opt/homebrew/bin" -HOMEBREW_SBIN="/opt/homebrew/sbin" -grep "$HOMEBREW_SBIN" "$PATH" > /dev/null 2>&1 || export PATH="$HOMEBREW_SBIN:$PATH" -grep "$HOMEBREW_BIN" "$PATH" > /dev/null 2>&1 || export PATH="$HOMEBREW_BIN:$PATH" - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - alias dir='dir --color=auto' - alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# set LANG to be something sensible -export LANG="en_GB.utf-8" - -# some more ls aliases -alias ll='ls -alF' -alias la='ls -A' -alias l='ls -CF' - -command -v nvim > /dev/null 2>&1 && export EDITOR=nvim || export EDITOR=vi -command -v xed > /dev/null 2>&1 && export VISUAL=xed || export VISUAL=vi - -alias lg="lazygit" -alias nvimdiff="nvim -d" -alias vim="nvim" -alias vimdiff="nvim -d" - -if [ -f "$HOME/.bashrc.local" ] ; then - source "$HOME/.bashrc.local" -fi - -export PYENV_ROOT="$HOME/.pyenv" -command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - -command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)" -command -v starship > /dev/null 2>&1 && eval "$(starship init bash)" - -command -v glab > /dev/null && source <(glab completion -s bash) -command -v gh > /dev/null && source <(gh completion -s bash) diff --git a/.profile b/.profile deleted file mode 100644 index c4c7402d..00000000 --- a/.profile +++ /dev/null @@ -1,9 +0,0 @@ -# ~/.profile: executed by Bourne-compatible login shells. - -if [ "$BASH" ]; then - if [ -f ~/.bashrc ]; then - . ~/.bashrc - fi -fi - -mesg n 2> /dev/null || true diff --git a/.zshrc b/.zshrc deleted file mode 100644 index 512c0d1e..00000000 --- a/.zshrc +++ /dev/null @@ -1,60 +0,0 @@ -# vim: ft=zsh -# Source global definitions -if [ -f /etc/zshrc ]; then - . /etc/zshrc -fi - -# set PATH so it includes user's private bin if it exists -LOCAL_BIN="$HOME/.local/bin" -grep "$LOCAL_BIN" "$PATH" > /dev/null 2>&1 || export PATH="$LOCAL_BIN:$PATH" - -# set PATH so it includes homebrew bin directories if they exist -HOMEBREW_BIN="/opt/homebrew/bin" -HOMEBREW_SBIN="/opt/homebrew/sbin" -grep "$HOMEBREW_SBIN" "$PATH" > /dev/null 2>&1 || export PATH="$HOMEBREW_SBIN:$PATH" -grep "$HOMEBREW_BIN" "$PATH" > /dev/null 2>&1 || export PATH="$HOMEBREW_BIN:$PATH" - -# enable color support of ls and also add handy aliases -if [ -x /usr/bin/dircolors ]; then - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - alias dir='dir --color=auto' - alias vdir='vdir --color=auto' - - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -# colored GCC warnings and errors -export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' - -# set LANG to be something sensible -export LANG="en_GB.utf-8" - -# some more ls aliases -alias ll='ls -alF' -alias la='ls -A' -alias l='ls -CF' - -command -v nvim > /dev/null 2>&1 && export EDITOR=nvim || export EDITOR=vi -command -v xed > /dev/null 2>&1 && export VISUAL=xed || export VISUAL=vi - -alias lg="lazygit" -alias nvimdiff="nvim -d" -alias vim="nvim" -alias vimdiff="nvim -d" - -if [ -f "$HOME/.zshrc.local" ] ; then - source "$HOME/.zshrc.local" -fi - -export PYENV_ROOT="$HOME/.pyenv" -command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" - -command -v direnv > /dev/null 2>&1 && eval "$(direnv hook zsh)" -command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)" - -autoload -U compinit; compinit -command -v glab > /dev/null && source <(glab completion -s zsh); compdef _glab glab -command -v gh > /dev/null && source <(gh completion -s zsh); compdef _gh gh