Fuck Nationalists, White Supremacists, Nazis, Fascists, The Patriarchy, Maga, Racists, Transphobes, Terfs, Homophobes, the Police.

  • 0 Posts
  • 42 Comments
Joined 3 years ago
cake
Cake day: February 22nd, 2022

help-circle
  • z3rOR0ne@lemmy.mltoLinux@lemmy.mlShare your Bash prompts!
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    1 month ago

    I use zsh, but my old Bash prompt looks almost the same as my Zsh prompt. Sorry, no screenshot, but here’s the code:

    export PS1='\[\033[01;34m\][\[\033[01;37m\] \W\[\033[01;34m\]]\$\033[01;34m\] $(git branch 2>/dev/null | grep '^*' | colrm 1 2)\n\033[01;34m└─>\033[37m '
    


  • z3rOR0ne@lemmy.mltoLinux@lemmy.mlReassessing Wayland
    link
    fedilink
    arrow-up
    5
    arrow-down
    1
    ·
    3 months ago

    I knew dudemanguy would eventually make a post like this. I use the distro(Artix Linux) he’s a maintainer on Artix, and he’s a solid dude that is always willing to help and gives solid help.

    I have both riverwm and bspwm along with Wayland and X on my system and honestly have stuck on X because getting my workflow exactly the same on Wayland has been a technical hurdle of learning Zig (riverwm is written in Zig), and so far, with the exception of the occasional race condition, X just works.

    I want to convert to Wayland, and will probably get around to making my own custom scripts in zig for working with riverwm. But until then, X/bspwm is where I live.







  • Anything you have trouble remembering, or just find yourself doing often, create an alias (or bash script if it constitutes a multi line command). Name the alias something you can easily remember that also lets you know what that command does.

    Then, and here’s he trick, don’t rely on the alias. Use it when you can’t remember, say “aww, damn it I had to use the alias again”, and then use which followed by the alias name to see what the command was again. Do this over and over and eventually some commands will stick.

    Ones that you don’t care about or are just super long, just keep using the alias and don’t worry about remembering them. Use aliases as both commands and notes.




  • I have a script that makes a list of every package and binary into an output file of packages as a list. I can just cat the output of the file in a subshell and pass that off to pacman -S. Pacman might complain here and there, but I can just edit the list. Then its just cp -r my config files that I’ve backed up and run my backups for movies, music, pics, games, etc.

    And yeah, it’s not perfect, but it’s good enough for me. I still have to do other stuff like switch out bash for zsh, etc. Gotta love bash scripts and backup configs though. That plus actual backups makes restoration from catastrophic failure at least bearable, albeit still time consuming.








  • A lot.

    Desktop/Laptop

    • Artix Linux
    • Neovim
    • BSPWM
    • Suckless Terminal
    • Librewolf
    • Firefox
    • Ungoogled Chromium
    • Thunderbird
    • mpv
    • rtorrent
    • Keepassxc
    • btop (TUI resource monitor)
    • links (old school TUI browser)
    • newsboat (TUI RSS reader)
    • yt-dlp
    • git
    • Espanso (text expander)
    • GIMP
    • Inkscape
    • Krita
    • Calibre (for epubs, great with Kobo ereader)
    • Wireshark
    • Lutris/WINE/Proton
    • OBS

    Phone

    • Android/GrapheneOS
    • Heliboard
    • FUTO Voice (Speech to Text)
    • Mull
    • Vanadium
    • Various Fossify Apps
    • Keepassxc
    • Thunder
    • Tusky
    • Thunderbird
    • Tubular
    • Seal (yt-dlp wrapper)
    • mpv
    • Antennapod
    • Feeder (RSS reader)
    • Glider (HN client)
    • OSMand
    • Stealth (Reddit lurking)
    • Element (Matrix client)
    • Transistor
    • Translate You
    • Protonmail
    • Proton Drive
    • Breezy Weather
    • URLCheck
    • Wikipedia (official reader)