From f49d96cf096deb767cc0e58c6f2d69fab9f0d52a Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sat, 8 Jun 2019 02:32:30 -0500 Subject: [PATCH] Added some parts from wsl --- .bash_aliases | 10 ++++++++++ .bashrc | 18 ++---------------- .flake8 | 5 +++++ .gitconfig | 12 ++++-------- .profile | 15 +++++++++++++-- 5 files changed, 34 insertions(+), 26 deletions(-) create mode 100644 .bash_aliases create mode 100755 .flake8 diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..9c2f556 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,10 @@ +alias ll='ls -l' +alias la='ls -A' +alias l='ls -CF' +alias edit='emacsclient -c -a ""' +alias ls='ls --color=auto' +alias dir='dir --color=auto' +alias vdir='vdir --color=auto' +alias grep='grep --color=auto' +alias fgrep='fgrep --color=auto' +alias egrep='egrep --color=auto' diff --git a/.bashrc b/.bashrc index 80099fd..3aa4766 100644 --- a/.bashrc +++ b/.bashrc @@ -22,7 +22,7 @@ HISTFILESIZE=2000 # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize - +shopt -s expand_aliases # If set, the pattern "**" used in a pathname expansion context will # match all files and zero or more directories and subdirectories. #shopt -s globstar @@ -75,22 +75,13 @@ esac # enable color support of ls and also add handy aliases if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" - alias ls='ls --color=auto' - #alias dir='dir --color=auto' - #alias vdir='vdir --color=auto' - - #alias grep='grep --color=auto' - #alias fgrep='fgrep --color=auto' - #alias egrep='egrep --color=auto' fi # colored GCC warnings and errors #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # some more ls aliases -#alias ll='ls -l' -#alias la='ls -A' -#alias l='ls -CF' + # Alias definitions. # You may want to put all your additions into a separate file like @@ -111,8 +102,3 @@ if ! shopt -oq posix; then . /etc/bash_completion fi fi -export PATH="~/scripts:$PATH" -export PATH="~/.pyenv/bin:$PATH" -eval "$(pyenv init -)" -eval "$(pyenv virtualenv-init -)" -alias edit='emacsclient -nw -a ""' diff --git a/.flake8 b/.flake8 new file mode 100755 index 0000000..2f15e71 --- /dev/null +++ b/.flake8 @@ -0,0 +1,5 @@ +[flake8] +max-line-length = 80 +... +select = C,E,F,W,B,B950 +ignore = E501 diff --git a/.gitconfig b/.gitconfig index 28fb2e0..ef2e91e 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,11 +1,7 @@ -# This is Git's per-user configuration file. +[credential] + helper = store +[core] + autocrlf = true [user] name = Raphael Roberts email = raphael.roberts48@gmail.com -# Please adapt and uncomment the following lines: -# name = rlbr -# email = raphael.roberts48@gmail.com -[core] - editor = vim -[credential] - helper = store diff --git a/.profile b/.profile index eca16cb..1a66146 100644 --- a/.profile +++ b/.profile @@ -1,6 +1,5 @@ # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login - # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. @@ -16,4 +15,16 @@ if [ -n "$BASH_VERSION" ]; then . "$HOME/.bashrc" fi fi -export PATH=~/.local/bin:$PATH + +# set PATH so it includes user's private bin if it exists +if [ -d "$HOME/.local/bin" ] ; then + PATH="$HOME/.local/bin:$PATH" +fi +export SCREENDIR="$HOME/.screen" +if [ ! -d "$SCREENDIR" ] ; then + mkdir "$SCREENDIR" +fi +export GOROOT=$HOME/go +export PATH=$PATH:$GOROOT/bin +export PATH="$HOME/.pyenv/bin:$PATH" +eval "$(pyenv init -)"