Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/psi-4ward/zsh_psi
ZSH config files
https://github.com/psi-4ward/zsh_psi
Last synced: 22 days ago
JSON representation
ZSH config files
- Host: GitHub
- URL: https://github.com/psi-4ward/zsh_psi
- Owner: psi-4ward
- Created: 2013-10-10T10:54:17.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-04T14:38:38.000Z (almost 10 years ago)
- Last Synced: 2024-12-09T08:47:06.485Z (25 days ago)
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`