mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Fix to remove .shrc ; other cleans
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user