Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
linux
dotfiles
1#!/usr/bin/env bash
2
3# enable color support of ls and also add handy aliases
4if [ -x /usr/bin/dircolors ]; then
5 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
6 alias ls='ls --color=auto'
7 #alias dir='dir --color=auto'
8 #alias vdir='vdir --color=auto'
9
10 alias grep='grep --color=auto'
11 alias fgrep='fgrep --color=auto'
12 alias egrep='egrep --color=auto'
13fi
14
15alias ll='ls -alF'
16alias la='ls -A'
17alias l='ls -CF'
18
19alias ..='cd ..'
20alias ...='cd ../..'
21
22# git
23alias clone='git clone'
24alias status='git status'
25alias stats='git status'
26alias stash='git stash'
27alias commit='git commit'
28alias signoff='git commit --signoff'
29alias push='git push'
30alias fetch='git fetch'
31alias pull='git pull --rebase'
32alias remotes='git remote -v'
33alias switch-upstream='git branch -u'
34alias module="git submodule"
35alias update-module="git submodule update --remote --merge"