• tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    42
    ·
    1 day ago

    You can list your aliases in bash pretty readily.

    $ alias
    alias emacs='emacs --no-site-file'
    alias ls='ls --color=tty -v'
    $
    
      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        6
        arrow-down
        4
        ·
        edit-2
        1 day ago
        $ git clone https://github.com/sharkdp/vivid.git
        $ cd vivid && cargo build && cd ..
        $ grep -v "^  nord" <vivid/themes/nord.yml >theme-template.yml
        $ csplit theme-template.yml /^colors:/1 -f "theme-template"
        $ sudo apt install cimg-dev
        $ git clone https://github.com/ImageProcessing-ElectronicPublications/palette.git
        $ cd palette
        $ mkdir build && cd build && cmake ../ && cmake --build .
        $ wget https://titis.org/uploads/posts/2022-01/1641518772_4-titis-org-p-nude-breasts-close-up-erotika-4.jpg
        $ convert -crop 2298x1041+1878+1560 1641518772_4-titis-org-p-nude-breasts-close-up-erotika-4.jpg cropped.png
        $ ./build/cpluspalette cropped.png 16 -k|tail -n+2|tr -s '[:cntrl:]' '\n'|sed s/^.//|awk "/.*/ {print \"  nord\"NR-1\": '\"\$0\"'\"}" >../titty-colors.txt
        $ export LS_COLORS=$(../vivid/target/debug/vivid generate <(cat ../theme-template00 ../titty-colors.txt ../theme-template01))
        $ clear
        $ ls
        

        Works for that too.