Giter VIP home page Giter VIP logo

zsh_psi's Introduction

ZSH Reference

Aliases

  • mcd mkdir -p $1 && cd $1
  • l ls -lh
  • ll ls -lah
  • la ls -ah
  • dir ls -lhR --color=auto | less
  • llog less /var/log/syslog
  • tlog less +F /var/log/syslog

apt

  • acs apt-cache search
  • acsh apt-cache show
  • agi apt-get install
  • agud apt-get update
  • agug apt-get upgrade
  • agdug apt-get dist-upgrade

pacman

  • pacupg: pacman -Syu Sync repos and upgrade packages
  • pacin: pacman -S Install package
  • pacre: pacman -R Remove package but keep config and deps
  • pacrem: pacman -Rns Remove package with config and deps
  • pacinfo: pacman -Si Display info about a repo package
  • pacs: pacman -Ss Search the repo for a package
  • pacloc: pacman -Qi Display info about a local package
  • paclocs: pacman -Qs Search local installed package

Global Aliases

  • L | less -M
  • G | grep -i --color
  • T | less +F -M

Hotkeys

  • Esc-h Show help for first word in cmdline

  • Esc-i Trigger completion

  • Esc-e Edit commandline in vim

  • Ctrl-i d Insert timestamp (YYYY-MM-DD)

  • Ctrl-o s Prefix commandline with sudo

  • Ctrl-space Expand abbreviations

  • In complete-mode:

    • Ctrl-n Take selection and complete again
    • Esc return Take selection as argument, dont close completion

Functions

  • greph History grep
  • new List files modified within the last X days
  • H-Glob Globbing help
  • H-Abbrevs List of defined abbreviations
  • calc A tiny calculator

ZSH-Globbing

  • `**/*.pdf recursive all pdf-files
  • `**/*(.) recursive all files
  • `**/*(/) recursive all directories

Qualifier

  • (f:gu+w,o-rx) Permissions
  • (u:user) User match
  • (g:group) Group match
  • ^ Negate all following qualifier

More ZSH-Tricks

  • zmv '(*).bak' '$1' Umbenennen mit regex
  • for i (*.eps) epstopdf $i

zsh_psi's People

Contributors

psi-4ward 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.