Browse Source

Added some parts from wsl

master
Raphael Roberts 7 years ago
parent
commit
f49d96cf09
  1. 10
      .bash_aliases
  2. 18
      .bashrc
  3. 5
      .flake8
  4. 12
      .gitconfig
  5. 15
      .profile

10
.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'

18
.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 ""'

5
.flake8

@ -0,0 +1,5 @@
[flake8]
max-line-length = 80
...
select = C,E,F,W,B,B950
ignore = E501

12
.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

15
.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 -)"