Giter Club home page Giter Club logo

normantud / my-zsh-config Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 11.42 MB

This is the collection of config files needed for my configuration of my ZSH. I did not write most of these myself, but copied them from any number of sources as seemed fit, though, because it was ever only intended for presonal use, I never documented these sources.

Shell 36.02% Ruby 1.50% Perl 0.31% Python 0.23% Makefile 0.11% Roff 0.07% C++ 2.29% Dockerfile 0.03% CoffeeScript 0.13% HTML 0.01% Vim Snippet 10.62% Haml 0.01% Vim Script 48.70%

my-zsh-config's Introduction

My-ZSH-Config

This is the collection of config files needed for my configuration of my ZSH. I did not write most of these myself, but copied them from any number of sources as seemed fit, though, because it was ever only intended for personal use, I never documented these sources. Most of them stem by the project oh-my-zsh.

Installation

Use

bash install.sh

Manual Installation

Install the powerline-fonts (on Debian, sudo apt install fonts-powerline, see https://github.com/powerline/fonts for other systems).

Copy these files to ~/.oh-my-zsh and ~/.zshrc respectively.

Also, for autocompletion, run

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

Features

  • Barely any need for cd anymore (just type the folder name)
  • Automatically expand ... to ../.., .... to ../../.. etc.
  • Colorize man-pages
  • Show latest git-status in git-repositories
  • Show aliases (e.g. git clone ... shows Alias tip: g clone ...)
  • Auto-completetion with tab-cycle-through and error-correction
  • Syntax-highlighting like in the fish-shell
  • Completion of commands that start similiar with right arrow key
  • Central repository for zsh-history for all open shells
  • ... much more :-)

Screenshots

SyntaxHighlighting Tabccat UnknownCommand powerlevel10k everything

Defined functions

I defined some functions in here that I sometimes use. These are those functions:

countdown $number_of_second			# Counts down the number of seconds given
randomtest					# Creates a folder in ~/test with a random number as name and cd's into it
download_transcription $ytid $lang		# Downloads youtube-transcriptions if youtube-dl is installed. Lang is "en" by default when not defined.
make_pdf_smaller $pdf_file			# Tries to compress a PDF file as much as possible without the compression being visible (only if gs is installed)
treesize					# Lists directories and files (largest to smallest) in the CWD
pretty_csv $csv_file				# Creates a pretty csv listing (with aligned columns)
mytail $file					# Does `tail -fn1000000 $file`
program | myavg				# Calculates avg, median, first and last value on the output of `program`
mongodbtojson $ip $port $dbname		# Exports the MongoDb database given to a csv-file (needs mongodb to be installed)

Some functions are only available on machines where there is a SLURM-installation available.

slurmlogpath $slurm_id			# Prints the log path of the job to STDOUT
stail $slurm_id				# Like `mytail $(slurmlogpath $slurm_id)`
staill $slurm_id				# Like `mytail $(slurmlogpath $slurm_id)`, but only 100 lines before current output (stail less)
stailn $number_of_lines $slurm_id		# Like `tail -fn${number_of_lines} $(slurmlogpath $slurmid)`
showmyjobsstatus				# Lists the status of all currently queued SLURM-jobs for this user and why it's pending (needs `whypending` to be installed)
ftails $slurm_id				# Like `stail $slurm_id`, but, when no parameter is given, automatically uses the first squeue result of the current user

my-zsh-config's People

Contributors

normantud avatar

Stargazers

DaOfficialWizard avatar

Watchers

James Cloos 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.