- remove double quotes.
- all
"${opt//\"}"
- suffix
"${opt%\"}"
- prefix
"${opt#\"}"
- all
- Prompt only displays the basename of the current directory.
Change%~
to%1~
Reference
- headless wifi
wpa_supplicant.confcountry=US ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="your_real_wifi_ssid" scan_ssid=1 psk="your_real_password" key_mgmt=WPA-PSK }
- headless ip address setup
add a line in cmdline.txt
ip=192.168.0.10
- sudo dpkg -i --force-overwrite /var/cache/apt/archives/apport_2.20.1-0ubuntu2.4_all.deb
- at local(client) machine.
touch ~/.Xauthority xauth generate $DISPLAY .
- Local sites running in WSL2 not accessible in browser
- the windows docker edits the host file. it works well after reseting the host file.
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.myshell.sh
- failed to use asdf zsh plugin
The emacs daemon can be started automatically in a very simple manner.
export ALTERNATE_EDITOR=""
problem: https://askubuntu.com/a/1327539 walkaround: microsoft/WSL#6226