Added option -d to alias ltmux
This commit is contained in:
parent
fd5a941fd7
commit
14b797482b
@ -7,7 +7,7 @@ alias foldersize='du -sh'
|
|||||||
alias nmap_localnet='nmap -sP 192.168.1.0/24'
|
alias nmap_localnet='nmap -sP 192.168.1.0/24'
|
||||||
alias sulast='sudo $(history -p !-1)'
|
alias sulast='sudo $(history -p !-1)'
|
||||||
alias whois="whois -h whois-servers.net"
|
alias whois="whois -h whois-servers.net"
|
||||||
alias ltmux="if tmux has-session -t $USER; then tmux attach -t $USER; else tmux new -s $USER; fi"
|
alias ltmux="if tmux has-session -t $USER; then tmux attach -d -t $USER; else tmux new -s $USER; fi"
|
||||||
alias ltitle='echo -ne "\033]0;$HOST\007"'
|
alias ltitle='echo -ne "\033]0;$HOST\007"'
|
||||||
alias ssh-copy-id='_(){ ssh $1 -p 5022 "mkdir -m 700 ~/.ssh; echo " $(< ~/.ssh/id_rsa.pub) " >> ~/.ssh/authorized_keys ; chmod 600 ~/.ssh/authorized_keys"; }; _'
|
alias ssh-copy-id='_(){ ssh $1 -p 5022 "mkdir -m 700 ~/.ssh; echo " $(< ~/.ssh/id_rsa.pub) " >> ~/.ssh/authorized_keys ; chmod 600 ~/.ssh/authorized_keys"; }; _'
|
||||||
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
|
||||||
|
Loading…
Reference in New Issue
Block a user