• 1 Post
  • 7 Comments
Joined 10 months ago
cake
Cake day: January 16th, 2024

help-circle







  • gmhh@lemmy.worldtoLinux@lemmy.worldDo you use aliases?
    link
    fedilink
    English
    arrow-up
    1
    arrow-down
    1
    ·
    edit-2
    9 months ago

    Some of these demand that the terminal you use them with is kitty:

    alias ipc='curl icanhazip.com'
    # btop is *pretty* bloat!
    alias htop='btop'
    # I'm kinda proud of this oneliner. It's pointless, but it was fun. It displays a random square image when you run
    # neofetch rather than the default ansi art
    alias neofetch='filarr=(~/Media/Images/1x1/*.*) && fil=${filarr[$RANDOM % ${#filarr[@]}]} && neofetch --kitty $fil' 
    # comics are an important part of my life
    alias gd='cd ~ ; gallery-dl'
    alias gde="cd ~ ; gallery-dl --chapter-filter 'lang == (\"en\")'"
    alias yd='yt-dlp --sub-langs all --embed-subs --embed-chapters --progress --paths home:~/Downloads'
    alias subl="/opt/sublime_text/sublime_text"
    #exa is currently unmaintained. eza is a maintained fork. It installs a link to exa, but...
    alias ls="eza --icons --hyperlink --group-directories-first --git"
    alias lsblkv="lsblk -o \"NAME,KNAME,SIZE,TYPE,VENDOR,MODEL,MOUNTPOINT\""
    alias icat="kitty +kitten icat"
    alias mem="grep -e Dirty: /proc/meminfo; grep -e Writeback: /proc/meminfo"
    alias flush="sync"
    alias links="links https://www.duckduckgo.com"
    alias q="qalc"
    alias hf="history 1 | fzf"
    # tile the first two kitty windows and resize all kitty windows to 915x945, redirecting any errors to /dev/null
    alias tk="xdotool search --class kitty windowmove %1 30 105 windowmove %2 975 105 windowsize %@ 915 945 2>/dev/null"
    # only ask for password once on long updates
    alias yay="yay --sudoloop"