-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathemergency.bashrc
More file actions
executable file
·41 lines (34 loc) · 1.14 KB
/
emergency.bashrc
File metadata and controls
executable file
·41 lines (34 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
# SENTINEL Emergency Minimal Bashrc
# Use this file when the terminal crashes due to issues with the regular bashrc
# To use: cp emergency.bashrc ~/.bashrc
# Basic prompt
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# Essential path
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:$HOME/.local/bin"
# Basic settings
HISTCONTROL=ignoreboth
HISTSIZE=1000
HISTFILESIZE=2000
shopt -s checkwinsize
shopt -s histappend
# Enable color support
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# Basic aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Basic functions
cd() { builtin cd "$@" && ls; }
# Instructions for recovery
echo "*** SENTINEL EMERGENCY MODE ***"
echo "This is a minimal .bashrc file for recovery."
echo "To reinstall SENTINEL properly, run:"
echo " cd ~/Documents/GitHub/SENTINEL && ./install.sh"
echo "------------------------------"