Add xf bash completion script
Fix issue with EDITOR variable declaration