Hi, when I type in my console -> source ~/.bashrc I get the next error

Hi, when I type in my console -> source ~/.bashrc I get the next error

System:    Kernel: 5.14.16-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=d7c7aed5-bd22-426a-8234-81daf99255e9
rw [email protected] quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.23.2 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Machine:   Type: Desktop Mobo: Gigabyte model: B550M H v: x.x serial: <filter> UEFI: American Megatrends
v: F3 date: 08/20/2020
CPU:       Info: 6-Core model: AMD Ryzen 5 3600XT bits: 64 type: MT MCP arch: Zen 2 family: 17 (23)
model-id: 71 (113) stepping: 0 microcode: 8701021 cache: L2: 3 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 91025
Speed: 3660 MHz min/max: 2200/3800 MHz boost: enabled Core speeds (MHz): 1: 3660 2: 3585
3: 3597 4: 3599 5: 3644 6: 3660 7: 3555 8: 4451 9: 4439 10: 3573 11: 3583 12: 3943
Vulnerabilities: Type: itlb_multihit status: Not affected
Type: l1tf status: Not affected
Type: mds status: Not affected
Type: meltdown status: Not affected
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: Full AMD retpoline, IBPB: conditional, STIBP: conditional, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics:  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] vendor: ASUSTeK
driver: amdgpu v: kernel bus-ID: 0b:00.0 chip-ID: 1002:731f class-ID: 0300
Device-2: Microdia Dual Mode Camera (8006 VGA) type: USB driver: hid-generic,usbhid
bus-ID: 3-4:4 chip-ID: 0c45:8006 class-ID: 0301
Display: x11 server: X.Org 1.20.13 compositor: kwin_x11 driver: loaded: amdgpu,ati
unloaded: modesetting,radeon alternate: fbdev,vesa display-ID: :0 screens: 1
Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x285mm (40.0x11.2") s-diag: 1055mm (41.5")
Monitor-1: DisplayPort-1 res: 1920x1080 hz: 60 dpi: 82 size: 597x336mm (23.5x13.2")
diag: 685mm (27")
Monitor-2: HDMI-A-0 res: 1920x1080 hz: 60 dpi: 82 size: 597x336mm (23.5x13.2")
diag: 685mm (27")
OpenGL: renderer: AMD Radeon RX 5600 XT (NAVI10 DRM 3.42.0 5.14.16-zen1-1-zen LLVM 12.0.1)
v: 4.6 Mesa 21.2.4 direct render: Yes
Audio:     Device-1: AMD Navi 10 HDMI Audio driver: snd_hda_intel v: kernel bus-ID: 0b:00.1
chip-ID: 1002:ab38 class-ID: 0403
Device-2: AMD Starship/Matisse HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel
bus-ID: 0d:00.4 chip-ID: 1022:1487 class-ID: 0403
Device-3: Focusrite-Novation Focusrite Scarlett 2i2 type: USB driver: snd-usb-audio
bus-ID: 3-2:2 chip-ID: 1235:8016 class-ID: fe01
Sound Server-1: ALSA v: k5.14.16-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.39 running: yes
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Gigabyte driver: r8169
v: kernel port: f000 bus-ID: 08:00.0 chip-ID: 10ec:8168 class-ID: 0200
IF: enp8s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:    Local Storage: total: 3.58 TiB used: 11.2 GiB (0.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Kingston model: SA2000M8500G size: 465.76 GiB
block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
rev: S5Z42105 temp: 37.9 C scheme: GPT
ID-2: /dev/sda maj-min: 8:0 vendor: Seagate model: ST3500413AS size: 465.76 GiB block-size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: JC45
scheme: MBR
ID-3: /dev/sdb maj-min: 8:16 vendor: Kingston model: SA400S371920G size: 1.75 TiB block-size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 0101 scheme: GPT
ID-4: /dev/sdc maj-min: 8:32 vendor: Seagate model: ST1000DM010-2EP102 size: 931.51 GiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200
serial: <filter> rev: CC43 scheme: MBR
ID-5: /dev/sdd maj-min: 8:48 type: USB vendor: Kingston model: DataTraveler 3.0 size: 14.44 GiB
block-size: physical: 512 B logical: 512 B type: N/A serial: <filter> rev: PMAP scheme: MBR
SMART Message: Unknown USB bridge. Flash drive/Unsupported enclosure?
Partition: ID-1: / raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 11.2 GiB (0.6%) fs: btrfs
dev: /dev/sdb2 maj-min: 8:18
ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%) used: 576 KiB (0.2%) fs: vfat
dev: /dev/sdb1 maj-min: 8:17
ID-3: /home raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 11.2 GiB (0.6%) fs: btrfs
dev: /dev/sdb2 maj-min: 8:18
ID-4: /var/log raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 11.2 GiB (0.6%) fs: btrfs
dev: /dev/sdb2 maj-min: 8:18
ID-5: /var/tmp raw-size: 1.75 TiB size: 1.75 TiB (100.00%) used: 11.2 GiB (0.6%) fs: btrfs
dev: /dev/sdb2 maj-min: 8:18
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.54 GiB used: 1.2 MiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 58.9 C mobo: 16.8 C gpu: amdgpu temp: 59.0 C mem: 60.0 C
Fan Speeds (RPM): N/A gpu: amdgpu fan: 0
Info:      Processes: 362 Uptime: 31m wakeups: 0 Memory: 15.55 GiB used: 4.47 GiB (28.7%) Init: systemd
v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1362 lib: 318
Shell: fish v: 3.3.1 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.08
##ERROR MESSAGE##
~/.bashrc (line 5): Missing end to balance this if statement
if  [ -x /usr/bin/starship ]; then
^
from sourcing file ~/.bashrc
source: Error while reading file '/home/francolim/.bashrc'

Check your /home/francolim/.bashrc kate .bashrc

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# Load starship prompt if starship is installed
if  [ -x /usr/bin/starship ]; then
    __main() {
        local major="${BASH_VERSINFO[0]}"
        local minor="${BASH_VERSINFO[1]}"

        if ((major > 4)) || { ((major == 4)) && ((minor >= 1)); }; then
            source <("/usr/bin/starship" init bash --print-full-init)
        else
            source /dev/stdin <<<"$("/usr/bin/starship" init bash --print-full-init)"
        fi
    }
    __main
    unset -f __main
fi

If you include terminal outputs in your post please use the proper output format in your post.

Using "~" 3 times above and "~" 3 times below the text block will provide a readable, raw look. I just fixed it.

And
:slight_smile:

3 Likes

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