Skip to content

Commit

Permalink
bash setup
Browse files Browse the repository at this point in the history
  • Loading branch information
chyzwar committed May 25, 2018
1 parent 9045ec8 commit 34eedbd
Show file tree
Hide file tree
Showing 30 changed files with 37 additions and 46 deletions.
28 changes: 0 additions & 28 deletions .bashrc

This file was deleted.

1 change: 1 addition & 0 deletions .bashrc
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# top-most EditorConfig file
root = true

[*]
Expand Down
28 changes: 28 additions & 0 deletions etc/bash/.bashrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090

[ -z "$PS1" ] && return

# Explicitly load dotfiles
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.alias"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.cabal"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.cargo"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.completion"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.crenv"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.function"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.go"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.grep"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.history"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.java"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.kerl"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.kiex"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.liquid"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.nodenv"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.opam"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.pager"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.pyenv"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.rbenv"
source "$HOME/MyProjects/dotfiles-ubuntu/etc/shell/.scala"

# Maximum number of open FD
ulimit -n 1000000
2 changes: 2 additions & 0 deletions .bashrc_backup → etc/bash/.bashrc_backup
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 0 additions & 9 deletions etc/sublime/Python.sublime-settings

This file was deleted.

13 changes: 6 additions & 7 deletions install/shell-install.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

DIR="$(dirname "$(readlink -f "$0")")"

Expand All @@ -8,9 +8,8 @@ sudo apt-get install -y guake
tput setaf 2; echo "Install liquidprompt"; tput sgr0
sudo apt-get install -y liquidprompt


echo "Symlinks for git/bashrc"
ln -sfv "$DIR/../.bashrc" ~
ln -sfv "$DIR/../.inputrc" ~
ln -sfv "$DIR/../etc/git/.gitconfig" ~
ln -sfv "$DIR/../etc/git/.gitignore_global" ~
tput setaf 2; echo "Create symlinks"; tput sgr0
ln -sfv "$(pwd)/etc/bash/.bashrc" ~
ln -sfv "$(pwd)/etc/readline/.inputrc" ~
ln -sfv "$(pwd)/etc/git/.gitconfig" ~
ln -sfv "$(pwd)/etc/git/.gitignore_global" ~
1 change: 0 additions & 1 deletion install/sublime-install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ DIR="$(dirname "$(readlink -f "$0")")"
tput setaf 2; echo "Install Sublime Text"; tput sgr0
sudo snap install --edge --classic sublime-text


echo "Install Package Manager"
PACKAGE_MANAGER_URL="https://packagecontrol.io/Package%20Control.sublime-package"
PACKAGE_MANAGER_DIR="/home/$USER/.config/sublime-text-3/Installed\ Packages/"
Expand Down

0 comments on commit 34eedbd

Please sign in to comment.