Fix to remove .shrc ; other cleans

This commit is contained in:
iliajie
2022-11-12 23:57:21 +02:00
parent d754624baa
commit e92a17c417
4 changed files with 0 additions and 49 deletions

View File

@@ -14,7 +14,6 @@ shopt -s checkwinsize
# 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'

View File

@@ -1,37 +0,0 @@
# don't put duplicate lines in the history
HISTCONTROL=ignoredups:ignorespace
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
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
# custom PS1
# # set prompt: ``username@hostname$ ''
PS1="\[\033[1;35m\]`whoami`\[\033[1;37m\]@\[\033[1;32m\]`hostname | sed 's/\..*//'`\[\033[1;37m\]"
case `id -u` in
0) PS1="${PS1}# ";;
*) PS1="${PS1}$ ";;
esac
# user default profile config
if [ -f ~/.profile ]; then
. ~/.profile
fi

View File

@@ -1,10 +1,3 @@
# user specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# don't put duplicate lines in the history
HISTCONTROL=ignoredups:ignorespace

View File

@@ -55,10 +55,6 @@ if ($config{'rcfile'}) {
if ($shellname eq 'bash') {
$shellexec = "$shellcmd --rcfile $rcfile";
}
# Sh
elsif ($shellname eq 'sh') {
$shellexec = "export ENV=$rcfile ; $shellexec";
}
# Zsh
elsif ($shellname eq 'zsh') {
$shellexec = "export ZDOTDIR=$rcdir ; $shellexec";