Normalisation et nettoyage #4
+1
-1
@@ -1,4 +1,4 @@
|
||||
if (which mc &> /dev/null); then
|
||||
if (command -v mc &> /dev/null); then
|
||||
if [ "${TERM}" = "rxvt-unicode" ]; then
|
||||
alias mc="TERM=rxvt-unicode-256color mc"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -2,6 +2,6 @@
|
||||
|
||||
# git clone https://github.com/riywo/anyenv ${HOME}/.anyenv
|
||||
|
||||
if (which anyenv &>/dev/null); then
|
||||
if (command -v anyenv &>/dev/null); then
|
||||
eval "$(anyenv init -)"
|
||||
fi
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
# GNU Screen stuff
|
||||
if ( which screen &> /dev/null )
|
||||
if ( command -v screen &> /dev/null )
|
||||
then
|
||||
if [[ ${TERM} != screen* ]]
|
||||
then
|
||||
|
||||
+2
-2
@@ -13,12 +13,12 @@ if [[ -z "${DISPLAY}" && $(id -u) -ge 1000 ]] ; then
|
||||
3) VT=vt3 ;;
|
||||
esac
|
||||
|
||||
if ( which ck-launch-session &> /dev/null )
|
||||
if ( command -v ck-launch-session &> /dev/null )
|
||||
then
|
||||
EXEC="exec ck-launch-session"
|
||||
fi
|
||||
|
||||
if ( which startx &> /dev/null )
|
||||
if ( command -v startx &> /dev/null )
|
||||
then
|
||||
${EXEC} startx 1> ~/.log/xsession-errors 2>&1 -- "${VT}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user