Major overhaul
This commit is contained in:
parent
1b0aaf9186
commit
6dcc6899a2
12
aliases
12
aliases
|
@ -9,23 +9,11 @@ alias ....="cd ../../.."
|
||||||
alias .....="cd ../../../.."
|
alias .....="cd ../../../.."
|
||||||
export EDITOR="/usr/bin/vim"
|
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
|
# improved reset and clear
|
||||||
alias reset="tput reset"
|
alias reset="tput reset"
|
||||||
alias clear="tput reset"
|
alias clear="tput reset"
|
||||||
|
|
||||||
# get ip alias
|
|
||||||
alias getip="curl -s https://ipecho.net/plain | xargs echo"
|
|
||||||
|
|
||||||
# better du
|
# better du
|
||||||
alias du="du -h"
|
alias du="du -h"
|
||||||
|
|
||||||
alias weather="curl -s wttr.in | head -n-1"
|
|
||||||
|
|
||||||
alias feh="feh -."
|
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
|
#!/bin/sh
|
||||||
mydir=$(dirname "$0")
|
cd "$(dirname "$0")"
|
||||||
mydir=$(realpath "$mydir")
|
PWD="$(pwd)"
|
||||||
|
|
||||||
if [ ! "$mydir" = "$HOME/dotfiles" ]; then
|
#dotfiles from
|
||||||
mv "$mydir" "$HOME/dotfiles"
|
#~/.config
|
||||||
mydir="$HOME/dotfiles"
|
for f in config/*; do
|
||||||
fi
|
mkdir -p "$HOME/.$f"
|
||||||
|
for d in $f/*; do
|
||||||
|
ln -sf "$PWD/$d" "$HOME/.$d"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
install() {
|
#dotfiles from
|
||||||
ln "$mydir/$1" "$HOME/.$1" -sf
|
#~
|
||||||
}
|
for f in home/*; do
|
||||||
|
ln -sf "$PWD/$f" "$HOME/.$(basename $f)"
|
||||||
|
done
|
||||||
|
|
||||||
installto() {
|
#scripts
|
||||||
mkdir -p "$HOME/$2"
|
#~/.local/bin
|
||||||
ln "$mydir/$1" "$HOME/$2/$1" -sf
|
mkdir -p "$HOME/.local/bin"
|
||||||
}
|
for f in local/bin/*; do
|
||||||
|
ln -sf "$PWD/$f" "$HOME/.$f"
|
||||||
install tmux.conf
|
done
|
||||||
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
|
|
||||||
|
|
|
@ -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