My ZSH Config
pacman -S zsh eza ttf-fira-code
touch "$HOME/.cache/zshhistory"
git clone https://github.com/patrickdobler/zsh
rm -rf ./zsh/.git ./zsh/README.md
cp -r zsh/. $HOME && rm -rf zsh
chsh -s /bin/zsh
brew install font-fira-mono-nerd-font --cask
brew install eza
mkdir "$HOME/.cache"
touch "$HOME/.cache/zshhistory"
git clone https://github.com/patrickdobler/zsh
rm -rf ./zsh/.git ./zsh/README.md
cp -r zsh/. $HOME && rm -rf zsh
chsh -s $(which zsh)
- https://github.com/nordtheme/iterm2
- https://github.com/nordtheme/terminal-app
- zsh-syntax-highlighting - syntax highlighting for ZSH in standard repos
- zsh-autosuggestions - Suggestions based on your history
- eza - modern replacement for the command-line program ls
- bat - modern replacement for cat with syntax highlighting
- nerd-fonts-fira-code - free monospaced font with programming ligatures
| Keys | Action | 
|---|---|
| shift+tab | Accept autosuggest | 
| home | Move to the beginning of the line. If already at the beginning of the line, move to the beginning of the previous line, if any. | 
| end | Move to the end of the line. If already at the end of the line, move to the end of the next line, if any. | 
| del | Delete the character under the cursor. | 
| ctrl+→ | Move forward one word, vi-style. | 
| ctrl+← | Move to the beginning of the previous word, vi-style. | 
| ctrl+backspace | Kill the word behind the cursor, without going past the point where insert mode was last entered. | 
| ctrl+del | Kill from the cursor to the end of the line. | 
- yaconfUpdate all AUR packages that have an update available.
- yacleanRemove uninstalled AUR packages and clean build files.
- yaclrRemove all cached AUR packages.
- yaupgUpdate all AUR packages to their latest versions.
- yasuUpdate all AUR packages to their latest versions without confirmation.
- yainInstall an AUR package.
- yainsUpgrade an installed AUR package.
- yareRemove an installed AUR package.
- yaremRemove an installed AUR package along with its dependencies and configuration files.
- yarepDisplay information about an AUR package.
- yarepsSearch for an AUR package.
- yalocDisplay information about an installed AUR package.
- yalocsSearch for an installed AUR package.
- yalstList all explicitly installed AUR packages.
- yaorphList orphaned AUR packages that are no longer required.
- yainsdInstall an AUR package as a dependency.
- yamirUpdate the package database and the AUR.
- yaupdUpdate the package database and the AUR.
- upgradeUpdate all packages to their latest versions.
- paclistList all explicitly installed AUR packages.
- pacupgUpdate all packages to their latest versions.
- pacinInstall a package.
- pacleanRemove uninstalled packages and clean cache.
- pacinsUpgrade an installed package.
- paclrRemove all cached packages.
- pacreRemove an installed package.
- pacremRemove an installed package along with its dependencies and configuration files.
- pacrepDisplay information about a package.
- pacrepsSearch for a package.
- paclocDisplay information about an installed package.
- paclocsSearch for an installed package.
- pacinsdInstall a package as a dependency.
- pacmirUpdate the package database and the mirror list.
- paclsorphansList orphaned packages that are no longer required.
- pacrmorphansRemove all orphaned packages.
- pacfileupgUpdate the file list for all installed packages.
- pacfilesSearch for a file in the package database.
- paclsList all files installed by a package.
- pacownDetermine which package a file belongs to.
- pacupdUpdate the package database and the mirror list.
- upgradeUpdate all packages to their latest versions.
- pacmansignkeysImport and sign one or more PGP keys for use with pacman.
- pacmanallkeysRefresh all PGP keys used by pacman.
- pacupdateUpdate the mirror list using geoip.
- ssh-startStart the SSH daemon.
- ssh-stopStop the SSH daemon.
- update-grubUpdate the GRUB bootloader configuration.
- catIf you have the- batsyntax highlighting tool installed, the alias will use- batinstead of- catfor better file viewing with syntax highlighting and line numbers.
- showHiddenShow hidden files in the Finder.
- hideHiddenHide hidden files in the Finder.
- ooOpen the current directory in the Finder.
- osupdateGet macOS software updates and update installed Homebrew and their installed packages.
- ipShow the public IP address of the machine.
- localipShow the local IP address of the machine.
- dnsShow the DNS servers used by the machine.
- lscleanupClean up LaunchServices to remove duplicates in the "Open With" menu.
- dscleanRecursively delete- .DS_Storefiles.
- drRead the "defaults" values.
- configbackupBackup configuration files using Mackup.
- sublOpen Sublime Text.
- brewaauto uninstalls formulae that are no longer needed.
- brewccleans the cache.
- brewCscrubs the cache, including downloads for the latest versions.
- brewdchecks your system for potential problems.
- breweedits given formula.
- brewfshows information about given formula.
- brewiinstalls given formula.
- brewllists installed formulae.
- brewLlists installed formulae that don't depend on other installed formula.
- brewolists outdated installed formulae.
- brewpremoves all cache files older than 30d
- brewrreinstalls given formula.
- brewsperforms a search of formula names.
- brewSmanages background services with macOS' launchctl daemon manager.
- brewtlist installed packages with all dependencies
- brewuupdates Homebrew and all formulae.
- brewUupgrades outdated formulae.
- brewxuninstalls a given formula.
- brewXdeletes all installed versions of given formula.
- brewupupdates everything with Homebrew
- caskeedits given cask.
- caskfshows information about given cask.
- caskiinstalls given cask.
- caskllists installed casks.
- caskolists outdated installed casks.
- caskrreinstalls given cask.
- casksperforms a search of cask tokens.
- caskUupgrades given cask or all outdated casks, if none given.
- caskxuninstalls given cask.
- caskXuninstalls even if given cask does not appear to be present.
- caskzzaps all files associated with given cask.
These aliases are shortcuts for the eza command, a modern replacement for ls.
- lShow files and directories with size, type, and human-readable format.
- laShow almost all files and directories in long format with size, type, and human-readable format.
- lrShow files and directories sorted by date in long format with size, type, and human-readable format.
- ltShow files and directories sorted by date in long format with size, type, and human-readable format.
- llShow files and directories in long format with size, type, and human-readable format.
- ldotList dot files.
- loneShow files and directories in one line with indicators.
- lrtShow files and directories sorted by date in one line with indicators.
- lsrRecursive list of files and directories in long format with size, type, and human-readable format.
- lamcShow files and directories in long format with size, type, and human-readable format, and access, modified, and created date.
- llgShow files and directories in long format with size, type, and human-readable format in grid view.
- treeShow the directory structure in a tree format up to a depth of 2.
- treelShow almost all files and directories in long format with size, type, and human-readable format in a tree format up to a depth of 2.
- treelaShow almost all files and directories in long format with size, type, and human-readable format, including dot files, in a tree format up to a depth of 2.
If eza is not installed, these aliases are shortcuts for the ls command.
- lShow files and directories with size, type, and human-readable format.
- laShow almost all files and directories in long format with size, type, and human-readable format.
- lrShow files and directories sorted by date in long format with size, type, and human-readable format.
- ltShow files and directories sorted by date in long format with size, type, and human-readable format.
- llShow files and directories in long format with size, type, and human-readable format.
- ldotList dot files.
- lSSort files and directories by size in a single column.
- lartSort files and directories by access time in a single column.
- lrtSort files and directories by modification time in a single column.
- lsrRecursive list of files and directories in long format with size, type, and human-readable format.
- lsnA column contains name of files and directories.
- treeShow the directory structure in a tree format up to any depth.
- zshrcQuickly access the- .zshrcfile.
- grepEnable colored output for- grep.
- sgrepRecursive search with line numbers and context for non-version control directories.
- tShow the last few lines of a file and follow it as it updates.
- HShow the first few lines of output.
- TShow the last few lines of output.
- GFilter output with grep.
- LShow output in- lesswith pagination.
- MShow output in- mostwith pagination.
- LLShow all output in- less.
- CAShow all output with non-printing characters.
- NEHide all error output.
- NULHide all output.
- PColorize Python traceback output.
- dudShow the size of directories in the current directory.
- dufShow the size of files and directories in the current directory.
- dusShow the size of directories sorted by size in the current directory.
- fdFind directories with a specific name.
- ffFind files with a specific name.
- filecountShow the number of files in the current directory.
- hShow the command history.
- hgrepSearch command history.
- helpShow the manual for a command.
- pShow information about running processes.
- sortnrSort in reverse numeric order.
- unexportRemove an environment variable.
- rm,- cp,- mvPrompt before overwriting or deleting files.
- mdCreate a directory and any necessary parent directories.
- ..,- ...Change the directory to the parent directory or grandparent directory.
- clsClear the terminal screen.
- topIf you have the- htopprocess monitoring tool installed on your system, the alias will overwrite- topwith- htop
The extract function is a utility function that can extract files from a variety of compressed formats. To use the function, simply call it with the name of the compressed file(s) you want to extract, like so:
extract -v file1.tar.gz file2.zipThe gitpush function adds all changes to the git staging area, commits them with a message, pulls the latest changes from the remote repository, and pushes the changes to the remote repository.
The gitupdate function adds your SSH key to the ssh-agent, tests the connection to GitHub, and outputs a success message if the connection is established:
- https://github.com/Mach-OS/Machfiles/blob/master/zsh
- https://github.com/ChrisTitusTech/zsh
- https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/archlinux/archlinux.plugin.zsh
- https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/common-aliases/common-aliases.plugin.zsh
- https://github.com/zimfw/homebrew
