Major overhaul
This commit is contained in:
parent
1b0aaf9186
commit
6dcc6899a2
12
aliases
12
aliases
|
@ -9,23 +9,11 @@ alias ....="cd ../../.."
|
|||
alias .....="cd ../../../.."
|
||||
export EDITOR="/usr/bin/vim"
|
||||
|
||||
# trash bin
|
||||
alias trash='mkdir -p "$HOME/.trash" && mv -b -t "$HOME/.trash"'
|
||||
alias cleartrash='rm -fv "$HOME/.trash/*"'
|
||||
|
||||
# weather forecast
|
||||
alias forecast="curl -s wttr.in | head -n -1"
|
||||
|
||||
# improved reset and clear
|
||||
alias reset="tput reset"
|
||||
alias clear="tput reset"
|
||||
|
||||
# get ip alias
|
||||
alias getip="curl -s https://ipecho.net/plain | xargs echo"
|
||||
|
||||
# better du
|
||||
alias du="du -h"
|
||||
|
||||
alias weather="curl -s wttr.in | head -n-1"
|
||||
|
||||
alias feh="feh -."
|
||||
|
|
Before Width: | Height: | Size: 557 KiB After Width: | Height: | Size: 557 KiB |
44
install.sh
44
install.sh
|
@ -1,27 +1,25 @@
|
|||
#!/bin/sh
|
||||
mydir=$(dirname "$0")
|
||||
mydir=$(realpath "$mydir")
|
||||
cd "$(dirname "$0")"
|
||||
PWD="$(pwd)"
|
||||
|
||||
if [ ! "$mydir" = "$HOME/dotfiles" ]; then
|
||||
mv "$mydir" "$HOME/dotfiles"
|
||||
mydir="$HOME/dotfiles"
|
||||
fi
|
||||
#dotfiles from
|
||||
#~/.config
|
||||
for f in config/*; do
|
||||
mkdir -p "$HOME/.$f"
|
||||
for d in $f/*; do
|
||||
ln -sf "$PWD/$d" "$HOME/.$d"
|
||||
done
|
||||
done
|
||||
|
||||
install() {
|
||||
ln "$mydir/$1" "$HOME/.$1" -sf
|
||||
}
|
||||
#dotfiles from
|
||||
#~
|
||||
for f in home/*; do
|
||||
ln -sf "$PWD/$f" "$HOME/.$(basename $f)"
|
||||
done
|
||||
|
||||
installto() {
|
||||
mkdir -p "$HOME/$2"
|
||||
ln "$mydir/$1" "$HOME/$2/$1" -sf
|
||||
}
|
||||
|
||||
install tmux.conf
|
||||
install zshrc
|
||||
install xinitrc
|
||||
install Xmodmap
|
||||
install wallpaper.png
|
||||
install vimrc
|
||||
installto picom.conf .config/picom
|
||||
installto dunstrc .config/dunst
|
||||
installto config.py .config/qutebrowser
|
||||
#scripts
|
||||
#~/.local/bin
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
for f in local/bin/*; do
|
||||
ln -sf "$PWD/$f" "$HOME/.$f"
|
||||
done
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm -rfv "$HOME/.trash"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -s wttr.in | head -n -1
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -s ipecho.net/plain
|
||||
echo
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
mkdir -p "$HOME/.trash"
|
||||
mv $@ "$HOME/.trash"
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
curl -s wttr.in | head -n -1
|
Loading…
Reference in New Issue