Add .aliases

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2016-09-12 21:49:12 +02:00
parent 7dc8aee385
commit ee5c1e6ff6
6 changed files with 20 additions and 12 deletions

7
.aliases Normal file
View file

@ -0,0 +1,7 @@
#!/bin/bash
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Update apt packages, npm modules and composer
alias update="sudo apt-get update; sudo apt-get dist-upgrade -y; sudo npm update -g; composer self-update"
alias cls="clear"

15
.bashrc
View file

@ -78,11 +78,8 @@ 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)"
test -r $HOME/.dircolors && eval "$(dircolors -b $HOME/.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'
@ -100,13 +97,9 @@ alias l='ls -CF'
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
# Sourcing alias definitions
if [ -f $HOME/.aliases ]; then
. $HOME/.aliases
fi
# enable programmable completion features (you don't need to enable

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
composer.phar

View file

@ -2,6 +2,7 @@
My Linux configuration files.
## Features
- i3-Configuration
## Installation
1. Clone the repository

BIN
bin/composer Executable file

Binary file not shown.

View file

@ -1,7 +1,6 @@
#!/bin/bash
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
#
# Usage: ./install.sh
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@ -11,6 +10,7 @@ ln -s "$DIR/.gitconfig" "$HOME/.gitconfig"
# Setting up various configuration files
ln -s "$DIR/.bash_profile" "$HOME/.bash_profile"
ln -s "$DIR/.bashrc" "$HOME/.bashrc"
ln -s "$DIR/.aliases" "$HOME/.aliases"
ln -s "$DIR/.profile" "$HOME/.bashrc"
ln -s "$DIR/.xinitrc" "$HOME/.xinitrc"
ln -s "$DIR/.Xresources" "$HOME/.Xresources"
@ -21,5 +21,11 @@ ln -s "$DIR/.dircolors" "$HOME/.dircolors"
ln -s "$DIR/bin" "$HOME/bin"
chmod +x "$HOME/bin/*"
# Download and install composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv "$DIR/composer.phar" "$HOME/bin/composer"
# Activate crontab file
crontab -u $USER "$DIR/.crontab"