Compare commits
2 commits
d8d0a04556
...
470df8a221
Author | SHA1 | Date | |
---|---|---|---|
470df8a221 | |||
fa7d18e179 |
1 changed files with 28 additions and 7 deletions
35
.aliases
35
.aliases
|
@ -1,10 +1,10 @@
|
||||||
# Servers
|
# Servers
|
||||||
alias cassa="mosh vsbugge@cassarossa.samfundet.no"
|
alias cassa="autossh vsbugge@cassarossa.samfundet.no"
|
||||||
alias cirkus="mosh vsbugge@cirkus.samfundet.no"
|
alias cirkus="autossh vsbugge@cirkus.samfundet.no"
|
||||||
alias alter="mosh vsbugge@altersex.samfundet.no"
|
alias alter="autossh vsbugge@altersex.samfundet.no"
|
||||||
alias navi="mosh vsbugge@navi.samfundet.no"
|
alias navi="autossh vsbugge@navi.samfundet.no"
|
||||||
alias kolje="ssh root@kolje.samfundet.no"
|
alias kolje="autossh root@kolje.samfundet.no"
|
||||||
alias cassini="mosh cassini"
|
alias cassini="autossh kaholaz@cassini.samfundet.no"
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
|
|
||||||
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
|
@ -64,7 +64,28 @@ itks() {
|
||||||
xdg-open "https://google.com/search?q=$1+site%3Aitk.samfundet.no"
|
xdg-open "https://google.com/search?q=$1+site%3Aitk.samfundet.no"
|
||||||
}
|
}
|
||||||
|
|
||||||
alias clip="wl-copy"
|
clip() {
|
||||||
|
input=$(cat)
|
||||||
|
|
||||||
|
if [ -n "$WAYLAND_DISPLAY" ] && command -v wl-copy >/dev/null 2>&1; then
|
||||||
|
printf "%s" "$input" | wl-copy
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$DISPLAY" ] && command -v xclip >/dev/null 2>&1; then
|
||||||
|
printf "%s" "$input" | xclip -selection clipboard
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$TERM" ]; then
|
||||||
|
esc="$(printf "%s" "$input" | base64 | tr -d '\r\n')"
|
||||||
|
printf "\033]52;c;%s\a" "$esc"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "No clipboard method available" >&2
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
dchmod () {
|
dchmod () {
|
||||||
find $2 -type d -exec chmod $1 {} +
|
find $2 -type d -exec chmod $1 {} +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue