The fish prompt shows node version in specific directory

Hello Garuda users and experts,

I'm happy to using garuda with default fish shell on my labtop.

Recently, I've installed reveal.js from github and then my fish shell started node version like below:
╭─hdo@mylabtop in ~ via  v19.1.0 <==
╰─ λ

How can I get rid of node version on fish prompt? the node version only showed on my $HOME directory and $HOME/Download but other directory didn't appear. I've removed reveal.js but node version still showed.

I'm not familiar with nodejs so I've no idea what kind of file should be removed.
Please help me let my fish shell back to normal status.

Thank you

Best regards,

Welcome :slight_smile:

Please, always post your garuda-inxi from terminal as text.

Look in your starship.toml and fish.config or ask

them :slight_smile:

1 Like

image

Can't edit my last post, maybe later :smiley:
1 Like

Btw, if it is nodejs-19.1.0-1, it has nothing to do with reveal.js

1 Like
System:
  Kernel: 6.0.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=77ff7c61-abe3-41b3-9c2c-4faeae5c1a5c rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=0 loglevel=3
  Desktop: KDE Plasma v: 5.26.3 tk: Qt v: 5.15.7 info: latte-dock
    wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20T1S1VE4U v: ThinkPad T14s Gen 1
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20T1S1VE4U v: SDK0J40697 WIN
    serial: <superuser required> UEFI: LENOVO v: N2YET26W (1.15 )
    date: 12/10/2020
Battery:
  ID-1: BAT0 charge: 46.5 Wh (84.5%) condition: 55.0/57.0 Wh (96.5%)
    volts: 12.5 min: 11.5 model: SMP 5B10W13910 type: Li-poly serial: <filter>
    status: not charging cycles: 17
CPU:
  Info: model: Intel Core i7-10610U bits: 64 type: MT MCP
    arch: Comet/Whiskey Lake note: check gen: core 10 level: v3 note: check
    built: 2018 process: Intel 14nm family: 6 model-id: 0x8E (142)
    stepping: 0xC (12) microcode: 0xF4
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 2625 high: 4907 min/max: 400/4900 scaling:
    driver: intel_pstate governor: performance cores: 1: 2300 2: 2300 3: 2300
    4: 2300 5: 2300 6: 2300 7: 4907 8: 2300 bogomips: 36799
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: Enhanced IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB
    filling, PBRSB-eIBRS: SW sequence
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CometLake-U GT2 [UHD Graphics] vendor: Lenovo driver: i915
    v: kernel arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports:
    active: DP-5,eDP-1 empty: DP-1, DP-2, DP-3, DP-4, HDMI-A-1, HDMI-A-2
    bus-ID: 00:02.0 chip-ID: 8086:9b41 class-ID: 0300
  Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo
    bus-ID: 1-8:3 chip-ID: 13d3:5406 class-ID: fe01 serial: <filter>
  Display: x11 server: X.Org v: 21.1.4 with: Xwayland v: 22.1.5
    compositor: kwin_x11 driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 5760x2160 s-dpi: 96 s-size: 1520x570mm (59.84x22.44")
    s-diag: 1623mm (63.91")
  Monitor-1: DP-5 mapped: DP-2-3 pos: primary,top-left model: Dell U4320Q
    serial: <filter> built: 2021 res: 3840x2160 hz: 30 dpi: 104 gamma: 1.2
    size: 941x529mm (37.05x20.83") diag: 1080mm (42.5") ratio: 16:9 modes:
    max: 3840x2160 min: 720x400
  Monitor-2: eDP-1 pos: bottom-r model: AU Optronics 0x403d built: 2018
    res: 1920x1080 dpi: 158 gamma: 1.2 size: 309x174mm (12.17x6.85")
    diag: 355mm (14") ratio: 16:9 modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.2.3 renderer: Mesa Intel UHD Graphics (CML GT2)
    direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH-LP cAVS vendor: Lenovo
    driver: sof-audio-pci-intel-cnl bus-ID: 1-2.1.1.2:11
    alternate: snd_hda_intel,snd_soc_skl,snd_sof_pci_intel_cnl
    chip-ID: 17ef:3083 bus-ID: 00:1f.3 class-ID: 0300 chip-ID: 8086:02c8
    class-ID: 0403 serial: <filter>
  Device-2: Lenovo ThinkPad Thunderbolt 3 Dock USB Audio type: USB
    driver: hid-generic,snd-usb-audio,usbhid
  Device-3: GN Netcom Jabra BIZ 2400 II type: USB
    driver: jabra,snd-usb-audio,usbhid bus-ID: 1-2.2:6 chip-ID: 0b0e:2453
    class-ID: 0300 serial: <filter>
  Sound API: ALSA v: k6.0.9-zen1-1-zen running: yes
  Sound Server-1: PulseAudio v: 16.1 running: no
  Sound Server-2: PipeWire v: 0.3.58 running: yes
Network:
  Device-1: Intel Comet Lake PCH-LP CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:02f0 class-ID: 0280
  IF: wlp0s20f3 state: down mac: <filter>
  Device-2: Intel Ethernet I219-LM vendor: Lenovo driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:0d4e class-ID: 0200
  IF: enp0s31f6 state: down mac: <filter>
  Device-3: Lenovo ThinkPad TBT 3 Dock type: USB driver: r8152
    bus-ID: 2-2.1.2:4 chip-ID: 17ef:3082 class-ID: 0000 serial: <filter>
  IF: enp0s20f0u2u1u2 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: virbr0 state: down mac: <filter>
Drives:
  Local Storage: total: 238.47 GiB used: 228.66 GiB (95.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Micron model: MTFDHBA256TDV
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 3007P4LN temp: 32.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 234.17 GiB size: 234.17 GiB (100.00%)
    used: 228.66 GiB (97.6%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 592 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 234.17 GiB size: 234.17 GiB (100.00%)
    used: 228.66 GiB (97.6%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-4: /var/log raw-size: 234.17 GiB size: 234.17 GiB (100.00%)
    used: 228.66 GiB (97.6%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
  ID-5: /var/tmp raw-size: 234.17 GiB size: 234.17 GiB (100.00%)
    used: 228.66 GiB (97.6%) fs: btrfs dev: /dev/nvme0n1p3 maj-min: 259:3
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.11 GiB used: 660.5 MiB (2.1%)
    priority: 100 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p2 maj-min: 259:2
Sensors:
  System Temperatures: cpu: 55.0 C pch: 56.0 C mobo: N/A
  Fan Speeds (RPM): fan-1: 0
Info:
  Processes: 260 Uptime: 56m wakeups: 5 Memory: 31.11 GiB
  used: 5.15 GiB (16.5%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.0 Packages: pm: pacman pkgs: 1640
  libs: 359 tools: octopi,paru,yay Shell: fish v: 3.5.1 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.23
Garuda (2.6.9-1):
  System install date:     2021-10-22
  Last full system update: 2022-11-23
  Is partially upgraded:   Yes
  Relevant software:       NetworkManager
  Windows dual boot:       Probably (Run as root to verify)
  Snapshots:               Snapper
  Failed units:            memavaild.service systemd-vconsole-setup.service systemd-oomd.socket 

I didn't modify startship.toml and fish.config

rw-r--r-- 2.4k hdo 16  Mar 11:58  starship.toml
.rw-r--r-- 4.8k hdo 21  Apr 01:17  config.fish

Me too :slight_smile:
But node.js, maybe.

 ╭─sgs@yoga9 in ~ took 1ms
 🕙 04:46:12
 ╰─λ cd node_assets/

 ╭─sgs@yoga9 in repo: node_assets on  main took 1ms
 🕙 04:47:08
 ╰─λ 

image

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.