Post At2jOMXIwwXc06Iu9Y by [email protected] | |
More posts by [email protected] | |
Post #At1VfKdVfpjSVyRa7s by [email protected] | |
0 likes, 0 repeats | |
Say a coworker puts the following in your bash startup file:--alias ed='ech… | |
Post #At1WMXSpr80akf3NvU by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Ik the former works, and the latter sounds like a bashism bound to wo… | |
Post #At1WovtyafToeVHua0 by [email protected] | |
0 likes, 1 repeats | |
@nixCraft while we're on torturing coworkers via dot files, when we got a n… | |
Post #At1Wsgu2IYyLIA6kWO by [email protected] | |
0 likes, 0 repeats | |
@nixCraft This why I have a stock of Annoyatrons ready to be deployed in unobtr… | |
Post #At1X36mExAZuR3Qe3c by [email protected] | |
0 likes, 0 repeats | |
@nixCraft sed -i 's/^alias/#alias/' ~/.bashrc<ctrl-d>loginetc. | |
Post #At1XFDqSV5BRpcB7Oi by [email protected] | |
0 likes, 0 repeats | |
@nixCraft use "emacs" or "vim"your coworker seems quite a s… | |
Post #At1XKzpnVLN87Ece4O by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Can we please move to something usable? WinSCP as root and then doubl… | |
Post #At1XNrGrndCAQReGKu by [email protected] | |
0 likes, 0 repeats | |
@nixCraft can't you just invoke sh and skip that mess? Even if sh is aliase… | |
Post #At1XPEpXgyRDmbWega by [email protected] | |
0 likes, 0 repeats | |
@nixCraft sed it out | |
Post #At1cSdHhjBvmGY8V8q by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Start a /bin/sh subshell, no aliases supported, move on. | |
Post #At1cjmrbMnGGti6gAy by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Erm, unalias? | |
Post #At1ebfyRIYvr7ZZ5rU by [email protected] | |
0 likes, 0 repeats | |
@nixCraft regarding the screenshot, the first command should be 'vipw',… | |
Post #At1fCr5uunVKKFn720 by [email protected] | |
0 likes, 0 repeats | |
@nixCraftSo happy that I use joe. | |
Post #At1h77Gk46i2f3FHqC by [email protected] | |
0 likes, 0 repeats | |
@nixCraft "command vim" | |
Post #At1iMVVWKVQ08J3q0O by [email protected] | |
0 likes, 0 repeats | |
@nixCraft JOE ftw | |
Post #At1x4Xdp9ihiqppuV6 by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Install Neovim, problem solved. 😏 | |
Post #At1znzu37sAFRWEDOC by [email protected] | |
0 likes, 1 repeats | |
@nixCraft you forget ne, the sensible console editor of gentlemen. | |
Post #At2008UZ1CCJYX5zhw by [email protected] | |
0 likes, 0 repeats | |
@nixCraft now do that too root too and you've got at least 10 minutes of fu… | |
Post #At2BUIEyR9GFyRO0WG by [email protected] | |
0 likes, 0 repeats | |
@nixCraft I always do ‘’command (that’s two single quotes) to get around … | |
Post #At2USdIb4Mfhpr0EIy by [email protected] | |
0 likes, 1 repeats | |
@nixCraft I don't need to, I use acme :p | |
Post #At2jOMXIwwXc06Iu9Y by [email protected] | |
0 likes, 0 repeats | |
What's wrong with vi? | |
Post #At2m1soB61rPIEAWxc by [email protected] | |
0 likes, 0 repeats | |
@nixCraft use cat, sed and > | |
Post #At2mFRiac667KR1RVg by [email protected] | |
0 likes, 0 repeats | |
@nixCraft i change to cat and grep | |
Post #At2mIXXDRb5CElB4RE by [email protected] | |
0 likes, 0 repeats | |
@nixCraft or install neovim | |
Post #At7btMM5qOvWZe84Aa by [email protected] | |
0 likes, 0 repeats | |
@nixCraft sed -i s/alias/balias/g ~/.bashrcsource ~/.bashrcemacs -nw ~/.bashrc#… | |
Post #At7btqlInEuusW9ccy by [email protected] | |
0 likes, 0 repeats | |
@nixCraft $ for a in vi vim emacs nvi nano mg ee; do alias $a=/bin/ed ; done | |
Post #At7btqrKQpjnBCyR1M by [email protected] | |
0 likes, 0 repeats | |
@ed1conf Evil.But roughly in line with my expectations of you! 😂 @nixCraft | |
Post #At7bu12KamTqkECMYi by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @nixCraft I’ve found functions to be slightly better as they tend to… | |
Post #At7bu18iD3aJ41BSVM by [email protected] | |
0 likes, 0 repeats | |
@drscriptt Most shells don't like using variable-names in function definiti… | |
Post #At7bu1FnmhFvQ0V7YW by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @drscriptt @nixCraft You need eval.eval "$a() { /bin/ed \"\$… | |
Post #At7bu1MBOyMNjnUDVA by [email protected] | |
0 likes, 0 repeats | |
@elithebearded fair, but then you have to vet it for quoting issues. For this … | |
Post #At7bu1TGyc205mnsYK by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @drscriptt @nixCraft mkdir $HOME/.bin ; PATH=$HOME/.bin:$PATHfor a in … | |
Post #At7bv631RjqMZm2MRE by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @nixCraft You can always trust @ed1conf do inject some truth into any … | |
Post #At7bvWI9s5OpyFJodk by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @elithebearded @nixCraft 😛 | |
Post #At7bwO380BSkhGhZi4 by [email protected] | |
0 likes, 0 repeats | |
@nixCraft eval $(which nano ) | |
Post #At7bwQQx8Zi05jrd7g by [email protected] | |
0 likes, 0 repeats | |
@elithebearded @ed1conf @drscriptt @nixCraft Can't I just do:command codean… | |
Post #At7bwXXEjbtW7FrFOC by [email protected] | |
0 likes, 0 repeats | |
@ed1conf @nixCraft fair.I usually manually create functions in my profile; e.g.… | |
Post #At7bwdEfXYbhnPDVHU by [email protected] | |
0 likes, 0 repeats | |
@nixCraft I was always taught that leaving your computer unlocked such that a c… | |
Post #At7bxeg9ex1iYtYqMy by [email protected] | |
0 likes, 0 repeats | |
@elithebearded Best to use ln -f to make sure it overwrites the target :flan_wi… | |
Post #At7bxpNPsxZdjxsXBo by [email protected] | |
0 likes, 0 repeats | |
@paul @nixCraft "without using unalias command" | |
Post #At7bxqlYigTo38BKSW by [email protected] | |
0 likes, 0 repeats | |
@ed1confYou forgot Word@nixCraft | |
Post #At7bykyxi2TWOusp7o by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Put the command in quotes:$ 'emacs' somefile |