Bash Russification

Well ... I'll start with clearing my throat - I'm not a hack (in the good sense of the word, you have to be able to write "on stream"), although I am a bit of a writer. And I'm not even very sure what I want to tell you today.







But my Procrastination has no limits, so buckle up, it's going to be a bumpy ride!





Introduction

@Oxyd, .

. )





:





 $1 
  )  $/.;;
  )  $/. ;;

 [ $2 ]; 
   "| $_ | $_ |"

#         :D
      
      



, -... , .

, alias- ( ), bash.





bash

, window slicer. reddit, .

, . "" , Fruct Ninja, )





, zsh - bash. , , ?

- bash . .

, .

"" .





:





#! /bin/zsh
# ,  !
=$TERM
alias ="if" \
      ="then" \
      ="fi" \
      ="case" \
      ="in" \
      ="done" \
      ="echo" \
      ="eval" \
      ="until" \
      ="do" \
      ="sleep" \
      ="else" \
      _="elif"

#  

#  
X=0
Y=0
x_=0
y_=0
_=2
_=2
=$
#    .  ยฏ\_(ใƒ„)_/ยฏ
_=$(i3-msg -t get_tree | jq -r '.. | .nodes?[]? | select(.window_type == "normal") | .name' | wc -l)

#   
 $(xdotool getmouselocation --shell)
#     i3wm
 $( i3-msg -t get_tree | jq -r '..|try select(.focused == true)| "x_=\(.rect.x)\ny_=\(.rect.y)\n_=\(.rect.width)\n_=\(.rect.height)\n=\(.window_properties.instance)"' )

(){
     [ $_ -lt $__ ];
    
        __=$(i3-msg -t get_tree | jq -r '.. | .nodes?[]? | select(.window_type == "normal") | .name' | wc -l)
         0.1
    
}

(){
    =$(( $1 / 2 - ($2 - $3) )) #         ""
    i3-msg split "$5" && $ & disown && 
    #      
     [ $ -gt 0 ]; 
        i3-msg resize grow "$4" "$"
    
        =$((  * - 1 ))
        i3-msg resize shrink "$4" "$"
    
}

 [ "$1" = "" ];   $_ $Y $y_ height v
_ [ "$1" = "" ];   $_ $X $x_ width h

      
      



gist. .





, . 13 . , , , .





"" , โ€” just for fun. "", "/// /" โ€” evaluate.





IT- ( , ?) , ( ).

, , , , !





. . editor-of-choise, vim, . , !

, , . - . ( โ€” , )





? - . , , ...

, .





  1. . , , "" . .





  2. . , . ( )

    IDE, .





  3. Personally, I won't use it. I am fluent in English, and therefore exactly the same pronunciation occurs in my head, and without translation. But for people who do not know English fluently, I advise you to at least try.





And in general, that's all. The devil is not so terrible as he is painted.





The ending turned out to be crumpled, I had in my plans more paragraph 4 of the thought spreading along the tree, but somehow another time. I will leave only dry squeeze: after looking into someone else's, do not forget about yours. Although the Russian language is lost in IT, it is never prohibited and even useful, so try it yourself before getting involved in an argument.








All Articles