i love julia

This commit is contained in:
Reinaldy Rafli 2021-08-11 22:42:12 +07:00
parent a01ae1cdb5
commit c0f8944835
3 changed files with 29 additions and 1 deletions

View File

@ -128,4 +128,3 @@ sudo /etc/init.d/dbus start &> /dev/null
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
export EDITOR="micro" export EDITOR="micro"
alias idea="eureka"

25
bin/idea Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env julia
homePath = homedir()
cd("$homePath/repository/ideas")
if length(ARGS) == 0
println("gimme some idea dude")
exit(0)
end
category = ARGS[1] * ".md"
idea = copy(ARGS)
popat!(idea, 1)
idea = join(idea, " ")
open(category, "a") do io
write(io, "- $idea\n")
end
run(`git add .`)
run(`git commit -m "new idea on $category"`)
println("your idea on $category has been added and commited to the repo")
exit(0)

4
bin/mkcd Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
mkdir $1
cd $1