Bashrc configuration questions

System:
  Kernel: 5.14.11-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
  root=UUID=47992a6e-0e9b-46f3-b596-cb6244652d89 rw
  [email protected] loglevel=3 quiet
  Desktop: LXQt 0.17.1 tk: Qt 5.15.2 info: cairo-dock, lxqt-panel
  wm: kwin_x11 vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASRock model: 980DE3/U3S3 serial: <filter>
  BIOS: American Megatrends v: P2.00 date: 09/04/2015
CPU:
  Info: Quad Core model: AMD FX-4300 bits: 64 type: MCP
  arch: Bulldozer family: 15 (21) model-id: 2 stepping: 0
  microcode: 6000852 cache: L2: 2 MiB
  flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 30458
  Speed: 3807 MHz min/max: N/A Core speeds (MHz): 1: 3807 2: 3807
  3: 3807 4: 3904
  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 and seccomp
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user
  pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB:
  conditional, STIBP: disabled, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Ellesmere [Radeon RX 470/480/570/570X/580/580X/590]
  vendor: Sapphire Limited driver: amdgpu v: kernel bus-ID: 01:00.0
  chip-ID: 1002:67df class-ID: 0300
  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: 3200x1080 s-dpi: 96
  s-size: 846x285mm (33.3x11.2") s-diag: 893mm (35.1")
  Monitor-1: HDMI-A-0 res: 1920x1080 hz: 60 dpi: 102
  size: 476x268mm (18.7x10.6") diag: 546mm (21.5")
  Monitor-2: DVI-D-0 res: 1280x1024 hz: 75 dpi: 96
  size: 340x270mm (13.4x10.6") diag: 434mm (17.1")
  OpenGL: renderer: Radeon RX 570 Series (POLARIS10 DRM 3.42.0
  5.14.11-zen1-1-zen LLVM 12.0.1)
  v: 4.6 Mesa 21.2.3 direct render: Yes
Audio:
  Device-1: AMD SBx00 Azalia vendor: ASRock driver: snd_hda_intel
  v: kernel bus-ID: 00:14.2 chip-ID: 1002:4383 class-ID: 0403
  Device-2: AMD Ellesmere HDMI Audio [Radeon RX 470/480 /
  570/580/590]
  vendor: Sapphire Limited driver: snd_hda_intel v: kernel
  bus-ID: 01:00.1 chip-ID: 1002:aaf0 class-ID: 0403
  Device-3: Ensoniq ES1371/ES1373 / Creative Labs CT2518
  driver: snd_ens1371 v: kernel bus-ID: 05:05.0 chip-ID: 1274:1371
  class-ID: 0401
  Sound Server-1: ALSA v: k5.14.11-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.38 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: ASRock driver: r8169 v: kernel port: d800 bus-ID: 04:00.0
  chip-ID: 10ec:8168 class-ID: 0200
  IF: enp4s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Integrated System Solution KY-BT100 Bluetooth Adapter
  type: USB driver: btusb v: 0.8 bus-ID: 6-1:2 chip-ID: 1131:1001
  class-ID: fe01
  Report: bt-adapter ID: hci0 rfk-id: 0 state: down
  bt-service: enabled,running rfk-block: hardware: no software: no
  address: <filter>
Drives:
  Local Storage: total: 4.78 TiB used: 4.16 TiB (87.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital
  model: WD10EZRZ-22HTKB0 size: 931.51 GiB block-size:
  physical: 4096 B logical: 512 B speed: 3.0 Gb/s type: HDD
  rpm: 5400 serial: <filter> rev: 1A01 scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Seagate
  model: ST1000DM003-1SB10C size: 931.51 GiB block-size:
  physical: 4096 B logical: 512 B speed: 3.0 Gb/s type: HDD
  rpm: 7200 serial: <filter> rev: CC43 scheme: MBR
  ID-3: /dev/sdc maj-min: 8:32 vendor: Western Digital
  model: WD10EZRX-00A8LB0 size: 931.51 GiB block-size:
  physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: N/A
  serial: <filter> rev: 1A01 scheme: MBR
  ID-4: /dev/sdd maj-min: 8:48 vendor: Mushkin model: MKNSSDTR240GB
  size: 223.57 GiB block-size: physical: 512 B logical: 512 B
  speed: 6.0 Gb/s type: SSD serial: <filter> rev: 6A scheme: MBR
  ID-5: /dev/sdg maj-min: 8:96 vendor: Seagate
  model: ST2000DM008-2FR102 size: 1.82 TiB block-size:
  physical: 4096 B logical: 512 B speed: <unknown> type: HDD
  rpm: 7200 serial: <filter> rev: 0001 scheme: MBR
  ID-6: /dev/sdh maj-min: 8:112 type: USB vendor: Kingston
  model: DataTraveler 2.0 size: 14.54 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: 38.06 GiB size: 38.06 GiB (100.00%)
  used: 11.36 GiB (29.8%) fs: btrfs dev: /dev/sdd6 maj-min: 8:54
  ID-2: /home raw-size: 462.29 GiB size: 454.91 GiB (98.40%)
  used: 347.9 GiB (76.5%) fs: ext4 dev: /dev/sdc5 maj-min: 8:37
  ID-3: /var/log raw-size: 38.06 GiB size: 38.06 GiB (100.00%)
  used: 11.36 GiB (29.8%) fs: btrfs dev: /dev/sdd6 maj-min: 8:54
  ID-4: /var/tmp raw-size: 38.06 GiB size: 38.06 GiB (100.00%)
  used: 11.36 GiB (29.8%) fs: btrfs dev: /dev/sdd6 maj-min: 8:54
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 11.67 GiB used: 2 MiB (0.0%)
  priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 26.1 C mobo: N/A gpu: amdgpu
  temp: 54.0 C
  Fan Speeds (RPM): N/A gpu: amdgpu fan: 1477
Info:
  Processes: 263 Uptime: 1h 43m wakeups: 0 Memory: 11.67 GiB
  used: 2.56 GiB (21.9%) Init: systemd v: 249 tool: systemctl
  Compilers: gcc: 11.1.0 clang: 12.0.1 Packages: pacman: 1472
  lib: 437 Shell: fish v: 3.3.1 default: Bash v: 5.1.8
  running-in: alacritty inxi: 3.3.06

From what I found by searching some relative topics, garuda use bash as default shell and fish. In my user's directory I have .bashrc, .bashrc_garuda and .zshrc. From my understanding .zshrc is there in case someone change the shell to zsh and isn't used by default, also .bashrc(which has only some basic confg) doesn't used and replaced by .bashrc_garuda on login to lxqt because of the relative autostart command.
I have some questions about bashrc though.

  1. Can I edit the .bashrc_garuda to add some stuff there or is somehow autogenerated?
  2. There is an alias command there with name "helpme" which outputs "command not found" when I try to run it. Do I need to install an extra package?
  3. I also have .bash_history file which have some commands I used previously, but they don't appear it alacritty and when run some other only. I suppose there is a history from fish, but I'm pretty sure I could access them before, and also I couldn't find a history file in .config/fish directory so where this other commands stored. I haven't touch any of those files or change anything relative to terminal, except alacritty's config to change the font size.
  1. yes
  2. no ?
find . -iname '*fish*' | grep history
./.local/share/fish/fish_history

  1. thanks
  2. This alias is for command:
cht.sh --shell

for this I asked if need a package to be installed. I just now tried to run the script "cht.sh" though and I found that there is an aur package in chaotic-aur repo. I installed it and works, but still the alias "helpme" doesn't run it.
3. Sorry about that, I should check .local/share too but it didn't cross my mind because usually user config related files are in user's directory or in .config directory.

helpme
find-the-command: "cht.sh" is not found locally, searching in repositories...

"cht.sh" may be found in package "chaotic-aur/cht.sh-git"

What would you like to do?
- (line 1):
function helpme --wraps 'cht.sh --shell' --description 'alias helpme=cht.sh --shell';  cht.sh --shell $argv; end
^
in function 'helpme'
/usr/bin/cht.sh
/usr/share/bash-completion/completions/cht.sh
/usr/share/fish/vendor_completions.d/cht.sh.fish
/usr/share/licenses/cht.sh-git/LICENSE
/usr/share/zsh/site-functions/_cht.sh
sudo pacman -Syu cht.sh-git
[sudo] password for sgs:
:: Synchronizing package databases...
core is up to date
extra                                      1569,6 KiB   567 KiB/s 00:03 [----------------------------------------] 100%
community                                     5,8 MiB  1130 KiB/s 00:05 [----------------------------------------] 100%
multilib is up to date
chaotic-aur                                1530,0 KiB  1122 KiB/s 00:01 [----------------------------------------] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (2)  rlwrap-0.43-4 cht.sh-git-r865.6d83c4d-1

Check /usr/bin/cht.sh, I dont use it :slight_smile:

Ugh, this needs to be replaced. We ship tealdeer now :eyes:

3 Likes

I don't use it either :smiley:. I just show the alias and I wanted to see what it does and I get the error.

1 Like

In autostart folder there is an entry "Initial bashrc setup" with the command:

mv ~/.bashrc_garuda ~/.bashrc; rm ~/.config/autostart/bashrc-setup.desktop

My .bashrc has only these contents:

#
# ~/.bashrc
#

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

alias ls='ls --color=auto'
PS1='[\[email protected]\h \W]\$ '

So, seems that the command doesn't run. I know that I can just do the replacement manually but I mostly mentioned to check if there is a problem with it(at least in lxqt).