mirror of https://github.com/aldy505/dotfiles.git
i love julia
This commit is contained in:
parent
a01ae1cdb5
commit
c0f8944835
|
@ -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"
|
|
||||||
|
|
|
@ -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)
|
Loading…
Reference in New Issue