Giter Site home page Giter Site logo

whisperity / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 0.0 1.59 MB

The synchronisation of Unix shell and environment between machines.

Shell 62.54% Python 4.45% Dockerfile 5.36% Vim Script 27.64%
environment environment-variables dotfile dotfiles synchronization shell shell-scripts shell-prompt prompt package

dotfiles's People

Contributors

whisperity avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dotfiles's Issues

[vim] Load configuration for the current directory

Either via direnv or preferably find some relevant Vim magic.

Use case: if we are in the LLVM tree, :set shiftwidth=2, otherwise use the one in the normal init.vim.
Maybe we can put a file somewhere in the llvm/ tree (preferably at the top, like .gitignore and .envrc) that Vim can find when starting (walk up the tree from cwd...) and execute as vim commands?

Prefer ipv6 for listening check in distcc.sh

# Returns true if $1 is listening on the local machine.
function check_tcp4port_listen {
    _dccsh_debug -n "Check port $1..."

    ss -lt4 | grep ":$1" &>/dev/null   # <----- HERE
    local R=$?

    _dccsh_debug -n "    is listening? "
    if [ $R -eq 0 ]; then
        _dccsh_debug "YES"
    else
        _dccsh_debug "NO"
    fi

    return $R
}

source-code

For my setup, the -lt6 works fine. But not the other way around.
Do you think we should change it?

Support grep -Rn output opening in vim

$ fse something
./foo/bar/info.txt:1234: asdasd something asdasd,

Copying out and opening ./foo/bar/info.txt:1234 with some custom alias should translate into vim +1234 ./foo/bar/info.txt which makes Vim automatically open at that line.

Install script

It would be nice if there would be a single "install script" which checks out and install this environment on any new user profile.

Make sure failing installs actually fail

E.g. vim.ycm fails to install if python3-dev is missing from the system packages, and yet the install is marked as "successful":

[DEBUG] Copy tree '/tmp/dotfiles-wsz_62g_/vim.ycm-0i1t8_8c/YouCompleteMe' to '/home/whisperity/.vim/bundle/YouCompleteMe
[DEBUG] Unconditionally copied 'config.vim (/opt/Dotfiles/packages/vim/ycm/config.vim)' to '/home/whisperity/.vim/config/YouCompleteMe.vim'
Searching Python 3.8 libraries...
ERROR: Python headers are missing in /usr/include/python3.8.
/opt/Dotfiles/packages/vim/ycm
Creating package archive for 'vim.ycm'
Successfully installed 'vim.ycm'.

Installer that downloads and sets up extra tools, such as CMake

In most development cases, CMake should be installed as a downloaded tarball version, as opposed to the package manager. (Ubuntu's package manager CMake is too old for most projects to work with.)

  • Download the latest version of CMake automatically
  • Install CMake: if sudo is present, under /opt, if not, under HOME/opt.
  • Set up symbolic links to the installed CMake version, either through update-alternatives (if sudo), or in HOME/bin.
  • Make sure dotfiles cmake checks if the latest CMake is present, and if not, reinstalls it (after asking the user)

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.