Git Product home page Git Product logo

dotfiles's People

Contributors

e8y avatar tomocafe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dotfiles's Issues

[blocklet] Add color

After #8, use short text for color highlight. Color all matches of short text in long text format.

[bash] Utility functions

  • Hard copy files/directories
  • Check list for commands available, files r/w/x, environment variables set/nonempty

[readme] Add screenshots

But don't host the images in this repository; use a secondary hosting repository and link to the images from this README.md.

search-select: move cache to front with % symbol

Currently +2 refers to cache index 2, and all further actions for this cache need to use the +2 prefix.

After doing search-list-cache and search-select +2 to list the matches, if we plan on doing a lot of file opening with cache 2 (e.g. search-select +2 a, search-select +2 b, ...), it would be easier to drop the +2 prefix.

Instead we could do search-select %2 which does the same as +2 but then touches the cache file so that it will now be indexed at 0. Then any future search-select calls will refer to that cache by default (e.g. search-select a, search-select b, ...).

vim: fix gvim gutter color

gvim gutters don't currently match the theme's normal background, need to add theme-based GTK2/3 settings for the GTK app background to match.

[i3] [bash] Use dedicated X Window property for close-mode

When _getRootProcess is a connection daemon, map the shell pid to a WM ID and save a property to the window to let close-mode know this window needs the special close mode. Currently it relies on WM command name, which doesn't work well with qrsh.

[i3] config.m4 should use full path for non-system executables invoked

Some login managers make it difficult (impossible) to add $I3_HOME/bin to your PATH before launching i3, so referring directly to an executable such as close-mode would fail.

Just changing the config file to refer to the full path ${I3_HOME:-~/.i3}/bin/close-mode should suffice.

Bash prompt

Support both git and p4 status information (based on current working directory and/or environment variables).

  • right-justified truncated CWD
  • prompt colored by return code of previous command
  • indicator if this is the root ssh/qsh window (parent proc is sshd/etc)

Give options to turn these on/off depending on situation:

  • username
  • hostname
  • tty
  • git/p4 status

Also set terminal title.

[bin] purge script

Script to purge file from any backup/snapshot directories

purge -I DIR [-I DIR ...] -d depth [-f] [--all] FILES ...

Removes FILES and also traverses paths of FILES to find any instances of FILES under DIR/*{depth}. By default, it only would delete files with the same inode, with --all it will remove all matching files (versions). It is also interactive by default, which can be turned off with -f.

e.g.

$ pwd
/path/to/my/files
$ purge -I.snapshot -d 2 ./looong.log
Remove /path/to/.snapshot/nightly.0/my/files/looong.log ? (Yy) >y
Remove /path/to/.snapshot/nightly.1/my/files/looong.log ? (Yy) >y
Removed 3 files.

[i3] Add default template i3blocks.conf

I typically write it from scratch for each machine (need different information in each case), but it's good to have something to start with so that it works out of the box.

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.