mirror of
https://github.com/Mastermindzh/dotfiles.git
synced 2024-11-22 06:44:41 +01:00
userdirs and some more git commands
This commit is contained in:
parent
b155b31d55
commit
e6761990e2
@ -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
|
||||||
|
|
||||||
|
@ -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
15
config/user-dirs.dirs
Normal 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"
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user