feat(bin, zshrc): except IOError, add alias to script
Anirudh icyph0x@pm.me
Fri, 01 Jun 2018 15:10:25 +0530
2 files changed,
5 insertions(+),
1 deletions(-)
M
bin/oxo.nim
→
bin/oxo.nim
@@ -9,7 +9,10 @@ var data = newMultipartData()
try: var file = paramStr(1) - data.addFiles({"file": fmt"{file}"}) + try: + data.addFiles({"file": fmt"{file}"}) + except IOError: + echo ";(" let url = "http://0x0.st" echo client.postContent(url, multipart=data) except IndexError:
M
zsh/.zshrc
→
zsh/.zshrc
@@ -34,6 +34,7 @@ alias icyinfo="~/bin/icyinfo.sh"
alias gah='sudo $(fc -ln -1)' alias nvime='nvim ~/.config/nvim/init.vim' alias up="~/bin/icyup.sh" +alias x="~/bin/oxo.nim" alias envac="source .env/bin/activate" alias vim="nvim" alias vi="nvim"