set nano as default editor
This commit is contained in:
@@ -32,6 +32,10 @@ if [ $isInFile -eq 0 ]
|
|||||||
sed -i 's/ash/bash/g' /etc/passwd
|
sed -i 's/ash/bash/g' /etc/passwd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set nano as default editor
|
||||||
|
echo "EDITOR=nano" > /etc/profile.d/default_editor.sh
|
||||||
|
echo "export EDITOR" >> /etc/profile.d/default_editor.sh
|
||||||
|
|
||||||
# add akanealw user if not existing
|
# add akanealw user if not existing
|
||||||
isInFile=$(cat /etc/passwd | grep -c "akanealw")
|
isInFile=$(cat /etc/passwd | grep -c "akanealw")
|
||||||
if [ $isInFile -eq 0 ]
|
if [ $isInFile -eq 0 ]
|
||||||
|
|||||||
Reference in New Issue
Block a user