Giter Club home page Giter Club logo

dotfiles's People

Contributors

scy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

dotfiles's Issues

Set cursor style in prompt

The \e[x q escape sequence, where x is an integer, can be used to set the cursor style in some terminals, see ctrlseqs (look for DECSCUSR on that page).

If I set my preferred style (e.g. 5 (bar) or 1 (block)) in my shell prompt, I don’t have to configure this in each terminal emulator separately. (That is, if all of my terminal emulators support that sequence.)

(NB: There seems to be a consensus emerging to use 0 as meaning “return to default set in the terminal config”, but I don’t think I’m gonna go with that.)

VimWiki: `.md` extension missing when creating a link

1f86e68 introduced VimWiki. However, when creating a hyperlink to another wiki page (using the Enter key), the resulting Markdown will not contain the .md extension, but instead look like [Link](link), not [Link](link.md). VimWiki itself can follow these links, but external tools can't.

There's vimwiki/vimwiki@eb00d30 that fixes it, but it hasn't hit their master yet. I'll either be simply waiting for that or forking VimWiki and cherry-picking that commit. Or I might even set my submodule to it, depending on what other history I'm pulling in in that case.

Don't overwrite `.orig_home`

Running the setup instructions twice (because bin/apply-scy-config failed, for example) causes the second run to overwrite the backup in .orig_home from the first run irrevocably.

Check whether the backup dir already exists, and if it does, refuse to continue.

WSL: Support YubiKey for SSH and GnuPG

Currently, WSL does not support attaching USB devices to the Linux environment. Therefore, you can't use a YubiKey directly for GnuPG or SSH operations.

Some people work around this by installing GPG4Win on the host and then forwarding its agent capabilities into Linux: This tweet shows @NZSmartie using npiperelay to access the host's GnuPG agent inside of WSL.

I need to figure out whether that's a mode of operation I'm comfortable with, whether I consider it secure enough and whether I think that I even need my YubiKey on my Windows machine.

Set higher screen standby timeout for Windows lock screen

Sometimes, after I lock my Windows laptop for an extended period of time with an external monitor connected via HDMI, after unlocking it again one of the 8 cores will be at ~80% utilization. This issue goes away only after a reboot or by disconnecting the external monitor (but then comes back when reattaching).

To reduce the impact, I'm currently experimenting with increasing the time it takes from locking the screen to putting the screens in standby. By default, after 1 minute of being locked, the screens turn off. This article explains how to change that value. I've used the command-line way to do it:

powercfg.exe /SETACVALUEINDEX SCHEME_CURRENT SUB_VIDEO VIDEOCONLOCK 1800
powercfg.exe /SETACTIVE SCHEME_CURRENT

This seems to work. I'll keep it at this setting for a few days and check whether the issue still appears. If not, I should introduce these commands to bin/apply-scy-config.

fish: running `abed` removes the Git abbreviations

After calling abed in a fish instance, abbreviations like gs no longer work, at least not until you reload them (for example by running gited).

I guess this is because of the set -g fish_user_abbreviations at the start of .config/fish/conf.d/_abbreviations.fish?

`$PATH` is broken

Apparently 074f892 broke $PATH (original continues at […], but it's not relevant here):

scy@spec ~> echo $PATH
/home/scy/bin:/home/scy/.local/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /usr/games /usr/local/games […]

fish has native support for "list" variables, colon-style is wrong.

Find out how to do this the right way and make sure that it doesn't break bash.

Figure out solution for „business“ Git email address

From time to time I work on a Git repo where I’m supposed to my business email address, but forgot to set git config user.email [email protected] and thus create commits with the wrong address.

There’s the includeIf solution, but it only works with Git ≥ 2.13. Since I’ve migrated from WSL/Debian to WSL/Ubuntu for most of my work, I now have at least 2.17 available.

Still, maybe aliasing git clone would be a better solution, or can I do something like unsetting --global user.email?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.