Zero dependency package.json scripts

Photo by Pankaj Patel on Unsplash


Photo by Iker Urteaga on Unsplash


Usage

Import options

Use the default export as a base for global styles.

import { createGlobalStyle } from 'styled-components';
import typography from '@styles/typography'; // replace path

const GlobalStyle = createGlobalStyle`
${typography}
`;
import styled from 'styled-components';
import { h3, p } from '@styles/typography'; // replace path

const Card = styled.div`
.title {
${h3}
}

.info {
${p}
}
`;

Structure and modifying

baseFontSize is inversely related to the typographic scale. …


Photo by Andrew Neel on Unsplash


Photo by Hello I'm Nik 🎞 on Unsplash

TL;DR

Add the following lines to the file where you keep your aliases:

alias cp="cp -iv"
alias mv="mv -iv"
alias rm="rm -iv"

The Options

The option flags we will be using are very comparable between commands cp, mv, and rm.


Configuration options

Photo by Kimon Maritz on Unsplash

Persistence

Default behavior is to overwrite the existing history file upon shell exit. The following are all methods of appending rather than rewriting the file — taking advantage of that potentially massive history size we set up in part one.

  • INC_APPEND_HISTORY
  • SHARE_HISTORY


Configuration setup

Photo by Timothy Newman on Unsplash

Zsh config files

If you are unfamiliar with the types of zsh configuration files and their uses, I recommend looking through this article in a great…

Ryan Todd Garza

Principal software engineer — make stuff

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store