feat(phoenix): Show actual host name in prompt and neofetch

This commit is contained in:
Sam Atkins 2024-06-28 15:58:33 +01:00 committed by Eric Dubé
parent e2ea57fcf9
commit 4539408a21
3 changed files with 3 additions and 3 deletions

View File

@ -95,7 +95,7 @@ export class ANSIShell extends EventTarget {
})
this.export_('LANG', 'en_US.UTF-8');
this.export_('PS1', '[\\u@puter.com \\w]\\$ ');
this.export_('PS1', '[\\u@\\h \\w]\\$ ');
for ( const k in env.getEnv() ) {
console.log('setting', k, env.get(k));

View File

@ -4,7 +4,7 @@ export const CreateEnvProvider = ({ config }) => {
return {
USER: config['puter.auth.username'],
HOME: '/' + config['puter.auth.username'],
HOSTNAME: 'puter.com',
HOSTNAME: config['puter.domain'],
}
},

View File

@ -70,7 +70,7 @@ export default {
}
lines[0] += COL + ctx.env.USER + END + '@' +
COL + 'puter.com' + END;
COL + ctx.env.HOSTNAME + END;
lines[1] += '-----------------';
lines[2] += COL + 'OS' + END + ': Puter'
lines[3] += COL + 'Shell' + END + ': Puter Shell v' + SHELL_VERSIONS[0].v