All Questions
4
questions
2
votes
1
answer
375
views
Why is a daily .zshrc reload required using an alias containing $(date -u +%Y%m%d)? [closed]
Each morning I run the following command that tails a log file created daily:
ssh -t [email protected] tail -f development/abc/$(date -u +%Y%m%d).log
This works just fine and each morning the log ...
4
votes
1
answer
3k
views
How to declare some aliases dynamically in zsh?
I would like to declare a few shortcut commands to switch between my various coding projects, so I have come up with the following script.
projects=$(ls -d ~/Workspace/*/)
prefix="/Users/myuser/...
3
votes
3
answers
423
views
How to alias a command with '
I wanted to make an alias turn caps lock off:
python -c 'from ctypes import *; X11 = cdll.LoadLibrary("libX11.so.6"); display = X11.XOpenDisplay(None); X11.XkbLockModifiers(display, c_uint(0x0100), ...
29
votes
3
answers
30k
views
Escaping quotes in zsh alias
Following on from this question about stripping newlines out of text, I want to turn this into a zsh alias as follows:
alias striplines=' awk " /^$/ {print \"\n\"; } /./ {printf( \" %s \",$0);}"'
I'...