mkshrc: retab
This commit is contained in:
parent
f58618fa13
commit
6dda9a7e98
20
base/.mkshrc
20
base/.mkshrc
|
@ -1,7 +1,7 @@
|
||||||
# (mk)shrc
|
# (mk)shrc
|
||||||
|
|
||||||
if [ -f /etc/shrc ]; then
|
if [ -f /etc/shrc ]; then
|
||||||
. /etc/shrc
|
. /etc/shrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
export EDITOR=nvim
|
export EDITOR=nvim
|
||||||
|
@ -106,16 +106,16 @@ get_ps1() {
|
||||||
}
|
}
|
||||||
|
|
||||||
case "$-" in *i*)
|
case "$-" in *i*)
|
||||||
# interactive mode settings go here
|
# interactive mode settings go here
|
||||||
if /bin/test -z "${HOST}"; then
|
if /bin/test -z "${HOST}"; then
|
||||||
HOST="$(hostname)"
|
HOST="$(hostname)"
|
||||||
fi
|
fi
|
||||||
PS1='$(get_ps1)'
|
PS1='$(get_ps1)'
|
||||||
set -o emacs
|
set -o emacs
|
||||||
|
|
||||||
# This file is used by shells that might not support
|
# This file is used by shells that might not support
|
||||||
# set -o tabcomplete, so check before trying to use it.
|
# set -o tabcomplete, so check before trying to use it.
|
||||||
( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete
|
( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete
|
||||||
|
|
||||||
if command -v xclip >/dev/null ; then
|
if command -v xclip >/dev/null ; then
|
||||||
alias ctop='xclip -selection clipboard -out | xclip -selection primary -in'
|
alias ctop='xclip -selection clipboard -out | xclip -selection primary -in'
|
||||||
|
@ -157,5 +157,5 @@ case "$-" in *i*)
|
||||||
|
|
||||||
echo "obase=$2; ibase=$1; $3" | bc
|
echo "obase=$2; ibase=$1; $3" | bc
|
||||||
}
|
}
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue