Bashrc vs config.fish

i'm wondering if there's a reason why .bashrc and config.fish have different aliases.
I feel like if you're in fish but at sometimes need/want to switch to Bash, you'd expect to have the same (default) aliases available?


garuda-inxi
System:
  Kernel: 6.3.2-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 13.1.1
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=f421b3e9-feb7-49ce-885d-088d8fed2dde rw rootflags=subvol=@
    quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    loglevel=3 module_blacklist=hid_sensor_hub nvme.noacpi=1 ibt=off
  Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.9 info: docker
    wm: kwin_wayland vt: 2 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Framework product: Laptop (12th Gen Intel Core) v: A4
    serial: <superuser required>
  Mobo: Framework model: FRANMACP04 v: A4 serial: <superuser required>
    UEFI: INSYDE v: 03.05 date: 08/23/2022
Battery:
  ID-1: BAT1 charge: 46.1 Wh (90.9%) condition: 50.7/55.0 Wh (92.2%)
    volts: 17.1 min: 15.4 model: NVT Framewo type: Li-ion serial: <filter>
    status: charging cycles: 24
  Device-1: hidpp_battery_7 model: Logitech Wireless Mouse MX Master
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
CPU:
  Info: model: 12th Gen Intel Core i5-1240P bits: 64 type: MST AMCP
    arch: Alder Lake level: v3 note: check built: 2021+
    process: Intel 7 (10nm ESF) family: 6 model-id: 0x9A (154) stepping: 3
    microcode: 0x42A
  Topology: cpus: 1x cores: 12 mt: 4 tpc: 2 st: 8 threads: 16 smt: enabled
    cache: L1: 1.1 MiB desc: d-8x32 KiB, 4x48 KiB; i-4x32 KiB, 8x64 KiB
    L2: 9 MiB desc: 4x1.2 MiB, 2x2 MiB L3: 12 MiB desc: 1x12 MiB
  Speed (MHz): avg: 2637 high: 3954 min/max: 400/4400:3300 scaling:
    driver: intel_pstate governor: powersave cores: 1: 1614 2: 2384 3: 3131
    4: 2100 5: 1022 6: 2100 7: 865 8: 3954 9: 3246 10: 3169 11: 2981 12: 3163
    13: 2948 14: 3221 15: 3089 16: 3205 bogomips: 67584
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities: <filter>
Graphics:
  Device-1: Intel Alder Lake-P Integrated Graphics driver: i915 v: kernel
    arch: Gen-12.2 process: Intel 10nm built: 2021-22+ ports:
    active: DP-7,DP-8,eDP-1 empty: DP-1, DP-2, DP-3, DP-4 bus-ID: 00:02.0
    chip-ID: 8086:46a6 class-ID: 0300
  Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 d-rect: 5896x3424
    display-ID: 0
  Monitor-1: DP-7 pos: top-right res: 2560x1440 size: N/A modes: N/A
  Monitor-2: DP-8 pos: top-center res: 1080x1920 size: N/A modes: N/A
  Monitor-3: eDP-1 pos: bottom-l res: 2256x1504 size: N/A modes: N/A
  API: OpenGL v: 4.6 Mesa 23.0.3 renderer: Mesa Intel Graphics (ADL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Alder Lake PCH-P High Definition Audio driver: snd_hda_intel
    v: kernel alternate: snd_sof_pci_intel_tgl bus-ID: 00:1f.3
    chip-ID: 8086:51c8 class-ID: 0403
  API: ALSA v: k6.3.2-zen1-1-zen status: kernel-api tools: N/A
  Server-1: PipeWire v: 0.3.70 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Wi-Fi 6 AX210/AX211/AX411 160MHz driver: iwlwifi v: kernel
    pcie: gen: 2 speed: 5 GT/s lanes: 1 bus-ID: a6:00.0 chip-ID: 8086:2725
    class-ID: 0280
  IF: wlp166s0 state: up mac: <filter>
  Device-2: ASIX AX88179 Gigabit Ethernet driver: ax88179_178a type: USB
    rev: 2.1 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 3-2.4.4:27
    chip-ID: 0b95:1790 class-ID: ff00 serial: <filter>
  IF: enp0s20f0u2u4u4 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: up speed: 10000 Mbps duplex: unknown mac: <filter>
  IF-ID-2: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
  IF-ID-3: veth10965e6 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-4: veth12cfa45 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-5: veth15430a5 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-6: veth18f5518 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-7: veth242d3b1 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-8: veth35ab333 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-9: veth435ae19 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-10: veth571a7c2 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-11: veth589980c state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-12: veth61cfd69 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-13: veth64bf0ca state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-14: veth6841f62 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-15: veth717dabe state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-16: veth780c8bc state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-17: veth7882894 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-18: veth7ccb8a1 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-19: veth7e4fab1 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-20: veth8ebc675 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-21: veth980950c state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-22: vetha1381eb state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-23: vethae55a3d state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-24: vethb46bc4e state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-25: vethba8bfae state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-26: vethca17235 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-27: vethe07eefc state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-28: vethe9324e6 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-29: vetheeed3f6 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-30: vethf2855ed state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-31: vethf8e7d54 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-32: vethf8f15be state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Intel AX210 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 3-10:3 chip-ID: 8087:0032
    class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 1.82 TiB used: 214.9 GiB (11.5%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 980 PRO 2TB
    size: 1.82 TiB block-size: physical: 512 B logical: 512 B speed: 63.2 Gb/s
    lanes: 4 tech: SSD serial: <filter> fw-rev: 5B2QGXA7 temp: 55.9 C
    scheme: GPT
Partition:
  ID-1: / raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 101.66 GiB (57.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-2: /boot/efi raw-size: 2 GiB size: 2 GiB (99.80%) used: 576 KiB (0.0%)
    fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 101.66 GiB (57.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-4: /var/log raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 101.66 GiB (57.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
  ID-5: /var/tmp raw-size: 177.08 GiB size: 177.08 GiB (100.00%)
    used: 101.66 GiB (57.4%) fs: btrfs dev: /dev/nvme0n1p5 maj-min: 259:5
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: zram size: 31.06 GiB used: 27.43 GiB (88.3%)
    priority: 100 dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 82.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 1436 Uptime: 1d 12h 26m wakeups: 40321 Memory:
  available: 31.06 GiB used: 18.36 GiB (59.1%) Init: systemd v: 253
  default: graphical tool: systemctl Compilers: gcc: 13.1.1 Packages: 1966
  pm: pacman pkgs: 1960 libs: 429 tools: gnome-software,octopi,pamac,paru
  pm: rpm pkgs: 0 pm: flatpak pkgs: 6 Shell: fish v: 3.6.1 default: Bash
  v: 5.1.16 running-in: konsole inxi: 3.3.27
Garuda (2.6.16-1):
  System install date:     2023-05-04
  Last full system update: 2023-05-20 ↻
  Is partially upgraded:   No
  Relevant software:       snapper NetworkManager dracut
  Windows dual boot:       No/Undetected
  Failed units:            

Just copy and paste what you need :slight_smile:

Well yeah, I know.

I meant this more as feedback.
I'm probably not the first person to experience this, but maybe I'm just the first person to suggest fixing this from a distro level

2 Likes

I've gone through the zsh, bash and fish configs. Combined all the aliases so they're available in all three if the PR is accepted.

3 Likes

I do not check all, but why do you delete

alias ip='ip -color'

image

?
I think its usefull.

MB (expac must be installed)
1 Like

Sorry, good catch. Fixed them, just an oversight from when I was merging them

1 Like

Making those universal is actually a quite good idea! Thanks :slight_smile:

3 Likes

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