Fix Albert core dumping after the first request After the system upgrades
Steps:
rm ~/.config/albert/core.db
Steps:
rm ~/.config/albert/core.db
Preferences/Settings
Editor > General > Code Completion > SQL > Qualify object with > Table > Never.
Don't waste time; here's the sample code with the Oracle database.
SELECT * FROM SampleTable WHERE sample_field in (7,3,4,6) ORDER BY INSTR(',7,3,4,6,', ',' || sample_field || ',');
You might be surprised why I am using MSYS2 so much these days. In short, my new job doesn't allow me to use Linux at work. I cannot bear the CMD.EXE and PWSH.EXE, they might be great tools for someone else, but definitely not for me.
/c/vagrant
, you will get the infamous Too many levels of symbolic links
error message. Fortunately, we have a solution: add a new user Environment variable MSYS=nonativeinnerlinks
. I assume you know how to add a user environment to the windows system. If it doesn't take effect, save your current work and reboot. I didn't reboot my Windows 11 VM, but I did have restarted the Windows terminal application to ensure the new MSYS2 terminal will work with the links!/c/Users/your-name
. If you copy from the following, don't forget to change david.wei
to your Windows username.$ cat /etc/nsswitch.conf
# Begin /etc/nsswitch.conf
passwd: db
group: db
db_enum: cache builtin
#db_home: cygwin desc
db_home: env windows /c/Users/david.wei
db_shell: cygwin desc
db_gecos: cygwin desc
# End /etc/nsswitch.conf
cmd.exe
in a msys2 terminal, that %PATH% environment will inherit from the PATH environment in the current bash session.export MSYS="winsymlinks:lnk"
into your .bashrc
to get a similar behaviour when you do ln -s
ReferenceMy colleage Joe asked me tonight, "how to remove those branches that no longer exist on remote?"
In short, you have two options
git remote prune origin
at timesgit config --global fetch.prune true
command to config your git to delete those branches every time when you run git fetch
I prefer the second option, how about you?