add general linux conf

This commit is contained in:
2022-02-28 14:53:40 +00:00
parent ddd53f3c41
commit 42eacc8844
6 changed files with 340 additions and 0 deletions

23
linux/.bash_aliases Normal file
View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
if ls --color &> /dev/null; then
alias ll='ls -kahlF --color=always'
alias l='ls -CF --color=always'
else
alias ll='ls -kahlFG'
alias l='ls -CFG'
fi
alias cd..='cd ..'
alias mkdir='mkdir -pv'
if git --version &> /dev/null; then
alias git-root='cd "$(git rev-parse --show-toplevel)"'
fi
if hugo version &> /dev/null; then
alias hubu='hugo -v --cleanDestinationDir --gc --minify'
fi
if git --verison ; then
alias git-root='cd "$(git rev-parse --show-toplevel)"'
fi