Compare commits
2 Commits
979e548ac9
...
2d7898df9a
Author | SHA1 | Date |
---|---|---|
urosm | 2d7898df9a | |
urosm | 39dfe9b38a |
10
bashrc
10
bashrc
|
@ -8,8 +8,11 @@
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
||||||
# history
|
# history
|
||||||
|
export HISTCONTROL=ignoredups:erasedups
|
||||||
|
export HISTSIZE=-1
|
||||||
|
export HISTFILESIZE=-1
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
PROMPT_COMMAND="history -a"
|
PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||||
|
|
||||||
# set the title to user@host:dir
|
# set the title to user@host:dir
|
||||||
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
PS1="\[\e]0;\u@\h:\w\a\]$PS1"
|
||||||
|
@ -43,10 +46,11 @@ alias grep="grep --color"
|
||||||
|
|
||||||
# ls
|
# ls
|
||||||
alias ls="ls --color"
|
alias ls="ls --color"
|
||||||
alias ll="ls -AFv1 --group-directories-first"
|
alias ll="ls -AF1L"
|
||||||
|
alias lll="ls -AFlh"
|
||||||
|
|
||||||
# nvim
|
# nvim
|
||||||
alias :e="nvim"
|
alias :e=nvim
|
||||||
|
|
||||||
# enable bash completion in interactive shells
|
# enable bash completion in interactive shells
|
||||||
if ! shopt -oq posix; then
|
if ! shopt -oq posix; then
|
||||||
|
|
6
profile
6
profile
|
@ -81,7 +81,9 @@ export OPAMROOT=$XDG_DATA_HOME/opam
|
||||||
export EDITOR=vi
|
export EDITOR=vi
|
||||||
|
|
||||||
# ssh agent
|
# ssh agent
|
||||||
eval $(ssh-agent)
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||||
|
eval $(ssh-agent)
|
||||||
|
fi
|
||||||
|
|
||||||
# desktop
|
# desktop
|
||||||
if [ "$(tty)" = "/dev/tty1" ] && command -v sway &>/dev/null; then
|
if [ "$(tty)" = "/dev/tty1" ] && command -v sway &>/dev/null; then
|
||||||
|
@ -94,5 +96,5 @@ if [ "$(tty)" = "/dev/tty1" ] && command -v sway &>/dev/null; then
|
||||||
export TERMINAL=footclient
|
export TERMINAL=footclient
|
||||||
export BROWSER=firefox
|
export BROWSER=firefox
|
||||||
# run sway
|
# run sway
|
||||||
exec systemd-cat --identifier=sway sway
|
exec sway
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue