Coder Social home page Coder Social logo

vogu66 / handy-shell-functions Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 22 KB

A collection of shell functions, scripts and aliases that can come in handy (zshell is used, on manjaro for the scripts)

License: Mozilla Public License 2.0

Shell 100.00%

handy-shell-functions's Introduction

handy-shell-functions

A collection of shell functions, scripts and aliases that can come in handy (zshell is used, on manjaro for the scripts)

Now that I've switch to chezmoi to manage my files, I will archive this repository. See my dotfiles for my current repo. Although at the time of writing not everything is there yet since I still need to remove some of the personal data. -- 2020-06-23


Architecture

./alias is meant as a file in ~/.alias ./functions is meant as a file in ~/.functions

Both should be sourced in .zshrc (or the equivalent for other shells) as such :

source ~/.alias
source ~/.functions

In addition, ./bin in this repository is meant as the folder ~/.bin, and should be added to the path with PATH=$PATH:~/.bin in ~/.profile.

Contents

Aliases

Functions

  • kil - kill a process by name (twice pkill because programs like Discord behave weirdly)
  • detach - detach a process from the shell (disown) and remove the text output
  • gitUser - set the right user for your git repo authomatically (needs to be adapted to the right person)
  • ex - extract, from the Manjaro bash_profile
  • show your personal functions and stuff

Bin

  • cleanup - update, remove some stuff, show latest errors - should not be used without understanding
  • gitUser - the backend behind gitUser from functions
  • light - lightens the load on your computer if you're on battery budget
  • heavy - allows to restart stuff that has been shut down by light -- doesn't take the stuff from light, needs to be adjusted manually.

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.