GithubHelp home page GithubHelp logo

msikma / dada-shell-theme Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 0.0 2.93 MB

My personal shell theme and prompt for Fish Shell

Shell 83.64% JavaScript 15.01% Python 1.24% sed 0.11%
fish shell theme prompt

dada-shell-theme's Introduction

Dada shell theme

A simple Fish shell theme designed exactly how I want it. This readme also contains instructions for installing all the terminal tools I commonly use.

Screenshot of Dada shell theme

Since I use Mac OS X, this is primarily designed for Mac OS X, but I also run it on my Ubuntu 20.04 LTS server with some changes.

Installation

First, install the Fish shell and set it as the default.

Then clone this repository in ~/.config/dada. Append this command to ~/.config/fish/config.fish to load the theme:

echo "source ~/.config/dada/dada.fish" >> ~/.config/fish/config.fish

If running on a server, add one extra line before that:

set -gx DADA_FISH_ENV "server"

You should now see the welcome message when opening a new terminal window.

To suppress the "last login" text that shows up briefly before the welcome message:

touch ~/.hushlogin

Installing utilities

Note that most of these installation instructions are for Mac OS X only.

  1. Install Brew:

    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Install the following Brew packages:

    brew install bat bchunk ccd2iso composer coreutils ecm exa fd findutils flac gawk git-extras gnu-getopt gnu-indent gnu-sed gnu-tar gnutls grep jq mdf2iso ncdu node python3 rsync streamlink tldr unar wget xdelta yt-dlp ghostscript autoconf automake libtool

  3. Install the following npm packages:

    npm i -g ascr cheerio dist-exiftool empty-trash-cli feedparser-promised fileicon imagemagick node-exiftool request sanitize-filename trash-cli vgmpfdl

After this there are some applications and packages that require extra configuration:

Backups

To see the current backup status, use backup. This prints a list of the available commands and how long it has been since they were last used.

Backup scripts listed under "non device specific" are global; they can be run on any device and store their data in the same place. The other scripts store their data in a directory named after the current hostname (~/.cache/dada).

Backups are disabled when running on a server.

Cron job

The built in cron job only runs on Mac OS X.

To set up the cron job, run cron-install. If this somehow doesn't work, it can be manually installed as follows:

  1. Copy the LaunchAgent plist file etc/com.dada.crontab.plist to ~/Library/LaunchAgents
  2. Activate it: launchctl load ~/Library/LaunchAgents/com.dada.crontab.plist.

Note that the run-cron.fish file doesn't use env to invoke Fish - it doesn't seem to be supported when running a cron job.

Copyright

MIT license

dada-shell-theme's People

Contributors

msikma avatar

Stargazers

Rijkaard Orismé avatar Austin Ziegler avatar Shuhei Kagawa avatar Kevin Chau avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.