userdirs and some more git commands

This commit is contained in:
Rick van Lieshout 2018-10-22 10:49:21 +02:00
parent b155b31d55
commit e6761990e2
5 changed files with 25 additions and 1 deletions

View File

@ -68,6 +68,12 @@ alias update-grub='grub-mkconfig -o /boot/grub/grub.cfg'
# git # git
alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d' alias gitremovelocalbranches='git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d'
alias untangle-line-endings='find ./ -type f -exec dos2unix {} \;'
# development
alias chromecors='google-chrome-stable --disable-web-security --user-data-dir=".chrome-unsafe"'
## Functions ## Functions

View File

@ -8,3 +8,5 @@
pushall = !git remote | xargs -L1 git push --all pushall = !git remote | xargs -L1 git push --all
diffname = !git diff --name-only diffname = !git diff --name-only
undocommit = reset --soft HEAD~1 undocommit = reset --soft HEAD~1
[core]
autocrlf = input

15
config/user-dirs.dirs Normal file
View File

@ -0,0 +1,15 @@
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
XDG_TEMPLATES_DIR="$HOME/Templates"

View File

@ -96,6 +96,7 @@ function install_config {
ln -sf "$PWD"/config/rofi ~/.config/rofi/config ln -sf "$PWD"/config/rofi ~/.config/rofi/config
ln -sf "$PWD"/config/.gitconfig ~/.gitconfig ln -sf "$PWD"/config/.gitconfig ~/.gitconfig
ln -sf "$PWD"/config/.npmrc ~/.npmrc ln -sf "$PWD"/config/.npmrc ~/.npmrc
ln -sf "$PWD"/config/user-dirs.dirs ~/.config/user-dirs.dirs
# link system files # link system files
sudo ln -sf "$PWD"/config/package-managers/pacman.conf /etc/pacman.conf sudo ln -sf "$PWD"/config/package-managers/pacman.conf /etc/pacman.conf