Skip to content

kefoster951/kode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kode

A simple bash script to

  • Add a shebang (if required)
  • Add an info header
  • Add code template (can be toggled)
  • Make file executable
  • Update last modified column of info header

Supported languages : bash, c, c++, c#, css, java, javascript, perl, php, python, ruby, rust, swift, typescript.

preview.gif

Installation

apt update && apt upgrade -y
apt install git
  1. Clone this repo.
git clone https://github.com/laraib07/kode.git
  1. Give kode necessary permission.
chmod 755 kode
  1. Create a symlink of kode to bin folder.

For termux

ln -s $PWD/kode $PREFIX/bin/kode

for linux desktop

sudo ln -s $PWD/kode /usr/bin/kode
  1. Create a symlink of .kode folder to home.
ln -s $PWD/.kode $HOME/.kode
  1. To set author name

Necessary

kode -a name
  1. I keep imoroving this script. So to update cd to kode and
git pull

Screenshots

preview1

preview2

About

A simple bash script to Add a shebang (if required) Add an informative header Add code template (can be toggled) Make file executable Update last updated column

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Shell 100.0%