Skip to content

Commit 4539408

Browse files
AtkinsSJKernelDeimos
authored andcommitted
feat(phoenix): Show actual host name in prompt and neofetch
1 parent e2ea57f commit 4539408

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/phoenix/src/ansi-shell/ANSIShell.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class ANSIShell extends EventTarget {
9595
})
9696

9797
this.export_('LANG', 'en_US.UTF-8');
98-
this.export_('PS1', '[\\u@puter.com \\w]\\$ ');
98+
this.export_('PS1', '[\\u@\\h \\w]\\$ ');
9999

100100
for ( const k in env.getEnv() ) {
101101
console.log('setting', k, env.get(k));

packages/phoenix/src/platform/puter/env.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export const CreateEnvProvider = ({ config }) => {
44
return {
55
USER: config['puter.auth.username'],
66
HOME: '/' + config['puter.auth.username'],
7-
HOSTNAME: 'puter.com',
7+
HOSTNAME: config['puter.domain'],
88
}
99
},
1010

packages/phoenix/src/puter-shell/coreutils/neofetch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default {
7070
}
7171

7272
lines[0] += COL + ctx.env.USER + END + '@' +
73-
COL + 'puter.com' + END;
73+
COL + ctx.env.HOSTNAME + END;
7474
lines[1] += '-----------------';
7575
lines[2] += COL + 'OS' + END + ': Puter'
7676
lines[3] += COL + 'Shell' + END + ': Puter Shell v' + SHELL_VERSIONS[0].v

0 commit comments

Comments
 (0)