You are not logged in.
Something some may find useful is a way of opening config files in an editor by using just their name
#!/usr/bin/env bash
# acf by Mr Green
term="sudo lxterminal -e <editor> "
search=$1
# Message if no file name given
function usage()
{
echo $"Usage: $0 <file/config_name>"
echo $"or use pacnew or pacsave to find"
echo "pacman installed files"
}
# Check for pacnew or pacsave in search
case $search in
pacnew) search='*.pacnew'
;;
pacsave) search='*.pacsave'
;;
conf) search='*.conf'
;;
*) [ -z $search ] && usage && exit 1
;;
esac
# Search for file in /etc and users home directory
find /etc $HOME -name "${search}" -type f 2>/dev/null -exec ${term} '{}' \;Just change <editor> to your chosen editor
Use
acf <file name>acf pacnewacf will search for all pacnew files in /etc
acf pacman.confWill load up /etc/pacman.conf in your editor
If acf finds more than one config/file with the same name it will open them all
Questions or suggestion welcome
Offline