# server.Server.source_file

- **Module:** server.Server
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/server.rs#L1435
- **Page:** https://libtmux.org/en/rs/latest/reference/server-server-source_file/

```
server.Server.source_file(self, path: impl Into<PathBuf>) -> Result<(), Error>
```

Load a tmux configuration file into this server.

# Errors

Returns an error when tmux cannot read the file or a command in it
fails.
