whisperity / dotfiles Goto Github PK
View Code? Open in Web Editor NEWThe synchronisation of Unix shell and environment between machines.
The synchronisation of Unix shell and environment between machines.
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?
To avoid confusion.
# 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
}
For my setup, the -lt6
works fine. But not the other way around.
Do you think we should change it?
$ 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.
It would be nice if there would be a single "install script" which checks out and install this environment on any new user profile.
When going from bash
to zsh
in an Ubuntu 20.04 image (like the Docker container that is now spun up from docker/
in the repo), even though ~/.zsh.pre.d
is loaded, ls
is still the old ls
, not the exa
alias.
To combat rate limiting...
If user credentials are not set, ask for them during the install of basic package.
Versions 0.5.0 and above depend on libgcc-s1
which is not available on Ubuntu 18.04.
Ctrl + / perhaps?
If python
is not installed, the install script for python.virtualenv
(as required by internal.virtualenv
and thus cmake
) cannot work properly. This whole idea has to be redesigned I think.
colordiff
from package managerdiff-so-fancy
as pagerdiff A B
to use diff -Naur A B | colordiff | diff-so-fancy
for highlightingLike rm -rf
, git reset
etc. should either completely not saved to history, or maybe saved as # rm -rf
...
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'.
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.)
sudo
is present, under /opt
, if not, under HOME/opt
.update-alternatives
(if sudo
), or in HOME/bin
.dotfiles cmake
checks if the latest CMake is present, and if not, reinstalls it (after asking the user)Get YouCompleteMe
working for CodeChecker and CodeCompass, and in general.
On a freshly installed Ubuntu 18.04 python 3 package Beautiful Soup 4 is not available.
Consider checking, and installing it when CMAKE package is chosen.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.