Add .aliases
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
7dc8aee385
commit
ee5c1e6ff6
6 changed files with 20 additions and 12 deletions
7
.aliases
Normal file
7
.aliases
Normal 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
15
.bashrc
|
@ -78,11 +78,8 @@ esac
|
||||||
|
|
||||||
# enable color support of ls and also add handy aliases
|
# enable color support of ls and also add handy aliases
|
||||||
if [ -x /usr/bin/dircolors ]; then
|
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 ls='ls --color=auto'
|
||||||
#alias dir='dir --color=auto'
|
|
||||||
#alias vdir='vdir --color=auto'
|
|
||||||
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
alias fgrep='fgrep --color=auto'
|
alias fgrep='fgrep --color=auto'
|
||||||
alias egrep='egrep --color=auto'
|
alias egrep='egrep --color=auto'
|
||||||
|
@ -100,13 +97,9 @@ alias l='ls -CF'
|
||||||
# sleep 10; alert
|
# 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 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.
|
# Sourcing alias definitions
|
||||||
# You may want to put all your additions into a separate file like
|
if [ -f $HOME/.aliases ]; then
|
||||||
# ~/.bash_aliases, instead of adding them here directly.
|
. $HOME/.aliases
|
||||||
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
|
||||||
|
|
||||||
if [ -f ~/.bash_aliases ]; then
|
|
||||||
. ~/.bash_aliases
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# enable programmable completion features (you don't need to enable
|
# enable programmable completion features (you don't need to enable
|
||||||
|
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
composer.phar
|
|
@ -2,6 +2,7 @@
|
||||||
My Linux configuration files.
|
My Linux configuration files.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
- i3-Configuration
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
1. Clone the repository
|
1. Clone the repository
|
||||||
|
|
BIN
bin/composer
Executable file
BIN
bin/composer
Executable file
Binary file not shown.
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Author: Severin Kaderli <severin.kaderli@gmail.com>
|
# Author: Severin Kaderli <severin.kaderli@gmail.com>
|
||||||
#
|
|
||||||
# Usage: ./install.sh
|
# Usage: ./install.sh
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
@ -11,6 +10,7 @@ ln -s "$DIR/.gitconfig" "$HOME/.gitconfig"
|
||||||
# Setting up various configuration files
|
# Setting up various configuration files
|
||||||
ln -s "$DIR/.bash_profile" "$HOME/.bash_profile"
|
ln -s "$DIR/.bash_profile" "$HOME/.bash_profile"
|
||||||
ln -s "$DIR/.bashrc" "$HOME/.bashrc"
|
ln -s "$DIR/.bashrc" "$HOME/.bashrc"
|
||||||
|
ln -s "$DIR/.aliases" "$HOME/.aliases"
|
||||||
ln -s "$DIR/.profile" "$HOME/.bashrc"
|
ln -s "$DIR/.profile" "$HOME/.bashrc"
|
||||||
ln -s "$DIR/.xinitrc" "$HOME/.xinitrc"
|
ln -s "$DIR/.xinitrc" "$HOME/.xinitrc"
|
||||||
ln -s "$DIR/.Xresources" "$HOME/.Xresources"
|
ln -s "$DIR/.Xresources" "$HOME/.Xresources"
|
||||||
|
@ -21,5 +21,11 @@ ln -s "$DIR/.dircolors" "$HOME/.dircolors"
|
||||||
ln -s "$DIR/bin" "$HOME/bin"
|
ln -s "$DIR/bin" "$HOME/bin"
|
||||||
chmod +x "$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
|
# Activate crontab file
|
||||||
crontab -u $USER "$DIR/.crontab"
|
crontab -u $USER "$DIR/.crontab"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue