.profile: Detect alias for dcfldd, correct TERM under urxvt
This commit is contained in:
parent
d19ace489e
commit
99033c7fd6
18
.profile
18
.profile
@ -9,23 +9,15 @@
|
|||||||
# Users of this script on minimalist shells will have to adapt
|
# Users of this script on minimalist shells will have to adapt
|
||||||
# this script accordingly.
|
# this script accordingly.
|
||||||
|
|
||||||
contains() {
|
|
||||||
string="$1"
|
|
||||||
substring="$2"
|
|
||||||
if test "${string#*$substring}" != "$string"; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Common miscellaneous aliases are all defined here for convenience
|
# Common miscellaneous aliases are all defined here for convenience
|
||||||
__define_aliases() {
|
__define_aliases() {
|
||||||
|
|
||||||
# Common Aliases
|
# Common Aliases
|
||||||
|
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias dd=dcfldd
|
if [ `which dcfldd` ]; then
|
||||||
|
alias dd=dcfldd
|
||||||
|
fi
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll='ls -alF'
|
alias ll='ls -alF'
|
||||||
alias la='ls -a --color=auto'
|
alias la='ls -a --color=auto'
|
||||||
@ -64,7 +56,9 @@ __define_functions() {
|
|||||||
__define_aliases
|
__define_aliases
|
||||||
__define_functions
|
__define_functions
|
||||||
|
|
||||||
export TERM="linux"
|
if [ "$TERM" = "rxvt-unicode-256color" ]; then
|
||||||
|
export TERM=xterm-256color
|
||||||
|
fi
|
||||||
|
|
||||||
EDITOR=$(which vim)
|
EDITOR=$(which vim)
|
||||||
PATH=$PATH:$HOME/.bin:$HOME/.local/bin
|
PATH=$PATH:$HOME/.bin:$HOME/.local/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user