mirror of
https://github.com/HeyPuter/puter
synced 2024-11-14 22:06:00 +00:00
feat(phoenix): Show actual host name in prompt and neofetch
This commit is contained in:
parent
e2ea57fcf9
commit
4539408a21
@ -95,7 +95,7 @@ export class ANSIShell extends EventTarget {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.export_('LANG', 'en_US.UTF-8');
|
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() ) {
|
for ( const k in env.getEnv() ) {
|
||||||
console.log('setting', k, env.get(k));
|
console.log('setting', k, env.get(k));
|
||||||
|
@ -4,7 +4,7 @@ export const CreateEnvProvider = ({ config }) => {
|
|||||||
return {
|
return {
|
||||||
USER: config['puter.auth.username'],
|
USER: config['puter.auth.username'],
|
||||||
HOME: '/' + config['puter.auth.username'],
|
HOME: '/' + config['puter.auth.username'],
|
||||||
HOSTNAME: 'puter.com',
|
HOSTNAME: config['puter.domain'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
lines[0] += COL + ctx.env.USER + END + '@' +
|
lines[0] += COL + ctx.env.USER + END + '@' +
|
||||||
COL + 'puter.com' + END;
|
COL + ctx.env.HOSTNAME + END;
|
||||||
lines[1] += '-----------------';
|
lines[1] += '-----------------';
|
||||||
lines[2] += COL + 'OS' + END + ': Puter'
|
lines[2] += COL + 'OS' + END + ': Puter'
|
||||||
lines[3] += COL + 'Shell' + END + ': Puter Shell v' + SHELL_VERSIONS[0].v
|
lines[3] += COL + 'Shell' + END + ': Puter Shell v' + SHELL_VERSIONS[0].v
|
||||||
|
Loading…
Reference in New Issue
Block a user