GithubHelp home page GithubHelp logo

config-windows's Issues

Add aliases

  • Add following to ~/.bashrc
git log --oneline --graph --all --decorate

new env works

  • Anaconda 2018.12 python may experience problem importing pylab
  • In the qtconsole (also available from Anaconda Navigator), import pylab works.
  • After creating a new environment, import pylab works in python.
conda env export --file <.yml> --name <env>
conda env create --name <new env> --file <.yml>
conda activate <new env>

Complement `git flow init -d` bug

git config gitflow.prefix.hotfix "hotfix/"
git config gitflow.prefix.feature "feature/"
git config gitflow.prefix.bugfix "bugfix/"
git config gitflow.prefix.release "release/"
git config gitflow.prefix.support "support/"
  • Running the commands above with --global adds following section in the ~/.gitconfig file
[gitflow "prefix"]
    hotfix="hotfix/"
    feature="feature/"
    bugfix="bugfix/"
    release="release/"
    hotfix="hotfix/"
    support="support/"
  • gitflow 1.12.3 could resolve this issue. Until then, consider adding above section to ~/.gitconfig

Another mode of error

  • ~/.bashrc may have incorrect PATH such that ls or vi may not work
  • Expected case
export PATH=<path 0>:<path 1>:<path 2>:$PATH
  • Problem case 1
export PATH=<path 0>:<path 1>:<path 2>;$PATH
  • Problem case 2
export PATH=<path 0>:<path 1>:<path 2>:$PAT

A common configuration guide

  • A separate subtree repo

Configurations

  • SW download
  • SW install
  • configuration after installation

Instructions

  • bash
  • git
  • vi
  • vscode

fill in missling paths

Why?

  • If python on PATH, current implementation does not update path
  • However $CONDA/Library/bin needs update anyways

Plan

  • Read .bashrc
  • Locate ^export PATH=.* line
  • Build a list of folders in $PATH
  • See if desired paths such as $CONDA or $CONDA/Library/bin in the path
  • If missing, add the desired paths
  • Replace export PATH= line
  • Update .bashrc

Would it work?

Expected environment

  • has Anaconda3
  • has MS VS Code
  • has git-bash
  • PowerShell.exe as the integrated terminal of MS VS Code
  • python mostly not on path
  • conda may not be active but not a must
  • not certain if code is on path

Desired environment

  • has Anaconda3
  • has MS VS Code
  • has git-bash
  • git-bash as the (integrated) terminal of MS VS Code
  • python on path in git-bash
  • no conda message
  • code on path in git-bash

CI : how to install Anaconda from commandline?

For Windows

Travis-CI

Anaconda

  • For Travis-CI, Chocolatey has Anaconda
  • Possible commandline:
choco install anaconda3 --params '"/JustMe /AddToPath /D:c:\MyTools"'

VS Code

choco install vscode

VS Code Extension

git for Windows

choco install git.install --params "/GitAndUnixToolsOnPath /NoGitLfs /SChannel /NoAutoCrlf"

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.