commit e85abd31d15f8370999567b6b48a81cffb7832c6
parent 88dbe9c8a978b2fcecde8a43e890ea26c374ee86
Author: Yuval Langer <yuval.langer@gmail.com>
Date: Mon, 19 Mar 2018 14:48:58 +0200
Move some bash into root directory
Diffstat:
5 files changed, 58 insertions(+), 135 deletions(-)
diff --git a/.bash_aliases b/.bash_aliases
@@ -1,3 +1,5 @@
+#!/bin/bash
+
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors
diff --git a/.gitconfig b/.gitconfig
@@ -1,29 +1,29 @@
[user]
- name = Yuval Langer
- email = yuval.langer@gmail.com
+ name = Yuval Langer
+ email = yuval.langer@gmail.com
[gui]
- fontdiff = -family Inconsolata -size 16 -weight normal -slant roman -underline 0 -overstrike 0
+ fontdiff = -family Inconsolata -size 16 -weight normal -slant roman -underline 0 -overstrike 0
[core]
- editor = vim
- excludesfile = ~/.gitignore_global
+ editor = vim
+ excludesfile = ~/.gitignore_global
whitespace = tab-in-indent, trailing-space
[diff]
- tool = diff
+ tool = diff
[difftool]
- tool = meld
+ tool = meld
[alias]
- s = status
- lg = log --all --graph --decorate --color
- c = checkout
- d = diff
- df = diff --word-diff
- l = log --all --graph --decorate --oneline
- hash = rev-parse HEAD
+ s = status
+ lg = log --all --graph --decorate --color
+ c = checkout
+ d = diff
+ df = diff --word-diff
+ l = log --all --graph --decorate --oneline
+ hash = rev-parse HEAD
[mergetool]
- cmd = meld "$LOCAL" "$MERGED" "$REMOTE"
+ cmd = meld "$LOCAL" "$MERGED" "$REMOTE"
[push]
- default = simple
+ default = simple
[merge]
- tool = meld
+ tool = meld
[color]
- ui = true
+ ui = true
diff --git a/.profile b/.profile
@@ -0,0 +1,38 @@
+# ~/.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.
+
+# the default umask is set in /etc/profile; for setting the umask
+# for ssh logins, install and configure the libpam-umask package.
+#umask 022
+
+export LC_ALL=C.UTF-8
+export LANG=C.UTF-8
+export LANGUAGE=C.UTF-8
+
+# if running bash
+if [ -n "$BASH_VERSION" ]; then
+ # include .bashrc if it exists
+ if [ -f "$HOME/.bashrc" ]; then
+ . "$HOME/.bashrc"
+ fi
+fi
+
+# set PATH so it includes user's private bin directories
+PATH="$HOME/bin:$HOME/.local/bin:$PATH"
+
+if [ -d "$HOME/.cargo/bin:$PATH" ]; then
+ export PATH="$HOME/.cargo/bin:$PATH"
+fi
+
+# pip bash completion start
+_pip_completion()
+{
+ COMPREPLY=( $( COMP_WORDS="${COMP_WORDS[*]}" \
+ COMP_CWORD=$COMP_CWORD \
+ PIP_AUTO_COMPLETE=1 $1 ) )
+}
+complete -o default -F _pip_completion pip
+# pip bash completion end
diff --git a/git/gitconfig b/git/gitconfig
@@ -1,27 +0,0 @@
-[user]
- name = Yuval Langer
- email = yuval.langer@gmail.com
-[gui]
- fontdiff = -family Inconsolata -size 16 -weight normal -slant roman -underline 0 -overstrike 0
-[core]
- editor = vim
- excludesfile = ~/.gitignore_global
-[diff]
- tool = diff
-[difftool]
- tool = meld
-[alias]
- s = status
- lg = log --all --graph --decorate --color
- c = checkout
- d = diff
- df = diff --word-diff
- l = log --all --graph --decorate --oneline
-[mergetool]
- cmd = meld "$LOCAL" "$MERGED" "$REMOTE"
-[push]
- default = simple
-[merge]
- tool = meld
-[color]
- ui = true
diff --git a/git/gitignore_global b/git/gitignore_global
@@ -1,90 +0,0 @@
-# Compiled source #
-###################
-*.com
-*.class
-*.dll
-*.exe
-*.o
-*.so
-
-# Packages #
-############
-# it's better to unpack these files and commit the raw source
-# git has its own built in compression methods
-*.7z
-*.dmg
-*.gz
-*.iso
-*.jar
-*.rar
-*.tar
-*.zip
-
-# Logs and databases #
-######################
-*.log
-*.sql
-*.sqlite
-
-# OS generated files #
-######################
-.DS_Store
-.DS_Store?
-._*
-.Spotlight-V100
-.Trashes
-ehthumbs.db
-Thumbs.db
-
-# Byte-compiled / optimized / DLL files
-__pycache__/
-*.py[cod]
-
-# C extensions
-*.so
-
-# Distribution / packaging
-bin/
-build/
-develop-eggs/
-dist/
-eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-*.egg-info/
-.installed.cfg
-*.egg
-
-# Installer logs
-pip-log.txt
-pip-delete-this-directory.txt
-
-# Unit test / coverage reports
-.tox/
-.coverage
-.cache
-nosetests.xml
-coverage.xml
-
-# Translations
-*.mo
-
-# Mr Developer
-.mr.developer.cfg
-.project
-.pydevproject
-
-# Rope
-.ropeproject
-
-# Django stuff:
-*.log
-*.pot
-
-# Sphinx documentation
-docs/_build/
-
-local_settings.py